mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 22:05:44 +01:00
add indices on blobId
This commit is contained in:
@@ -156,13 +156,13 @@ class AbstractBeccaEntity {
|
||||
this.save();
|
||||
|
||||
if (newBlobId !== oldBlobId) {
|
||||
this.#deleteBlobIfNoteUsed(oldBlobId);
|
||||
this.#deleteBlobIfNotUsed(oldBlobId);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
#deleteBlobIfNoteUsed(blobId) {
|
||||
#deleteBlobIfNotUsed(blobId) {
|
||||
if (sql.getValue("SELECT 1 FROM notes WHERE blobId = ? LIMIT 1", [blobId])) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user