Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/domain/service/noteSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,11 @@ export default class NoteSettingsService {
* In this case we need to remove previous cover
*/
if (notEmpty(data.cover) && notEmpty(noteSettings.cover)) {
await this.shared.fileUploader.deleteFile(noteSettings.cover);
try {
await this.shared.fileUploader.deleteFile(noteSettings.cover);
} catch (error) {
this.logger.warn('Previous cover not deleted', { err: error });

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to take a look at logs after the release and find out the reason why previous file could not be deleted

}
Comment on lines +146 to +150

this.logger.debug('Note cover replaced', {
noteId,
Expand Down
Loading