upgrade electron to 25 and node to 18

This commit is contained in:
zadam
2023-05-04 21:01:25 +02:00
parent 9b32d86f78
commit c0cf319521
8 changed files with 67 additions and 663 deletions

View File

@@ -883,7 +883,10 @@ function eraseUnusedBlobs() {
FROM blobs
LEFT JOIN notes ON notes.blobId = blobs.blobId
LEFT JOIN attachments ON attachments.blobId = blobs.blobId
WHERE notes.noteId IS NULL AND attachments.attachmentId IS NULL`);
LEFT JOIN note_revisions ON attachments.blobId = blobs.blobId
WHERE notes.noteId IS NULL
AND attachments.attachmentId IS NULL
AND note_revisions.noteRevisionId IS NULL`);
sql.executeMany(`DELETE FROM blobs WHERE blobId IN (???)`, unusedBlobIds);