1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

All: Handle deletion of resources that are not linked to any note

This commit is contained in:
Laurent Cozic
2018-03-16 17:39:44 +00:00
parent f81dbf4a4c
commit 544f93bf22
8 changed files with 80 additions and 34 deletions

View File

@ -62,6 +62,8 @@ class ResourceService extends BaseService {
await ItemChange.db().exec('DELETE FROM item_changes WHERE id <= ?', [lastId]);
}
await NoteResource.addOrphanedResources();
this.logger().info('ResourceService::indexNoteResources: Completed');
}