(id: string)
| 313 | } |
| 314 | |
| 315 | private async getNotes(id: string) { |
| 316 | const cipherResponse = await this.getCipher(id, (c) => !Utils.isNullOrWhitespace(c.notes)); |
| 317 | if (!cipherResponse.success) { |
| 318 | return cipherResponse; |
| 319 | } |
| 320 | |
| 321 | const cipher = cipherResponse.data as CipherResponse; |
| 322 | if (Utils.isNullOrWhitespace(cipher.notes)) { |
| 323 | return Response.error("No notes available for this item."); |
| 324 | } |
| 325 | |
| 326 | const res = new StringResponse(cipher.notes); |
| 327 | return Response.success(res); |
| 328 | } |
| 329 | |
| 330 | private async getExposed(id: string) { |
| 331 | const passwordResponse = await this.getPassword(id); |
no test coverage detected