You've already forked joplin
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:
@ -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');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user