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