mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 00:05:50 +01:00
blob WIP
This commit is contained in:
@@ -120,7 +120,7 @@ class BNoteRevision extends AbstractBeccaEntity {
|
||||
|
||||
this.blobId = utils.hashedBlobId(content);
|
||||
|
||||
const blobAlreadyExists = !sql.getValue('SELECT 1 FROM blobs WHERE blobId = ?', [this.blobId]);
|
||||
const blobAlreadyExists = !!sql.getValue('SELECT 1 FROM blobs WHERE blobId = ?', [this.blobId]);
|
||||
|
||||
if (!blobAlreadyExists) {
|
||||
const pojo = {
|
||||
|
||||
Reference in New Issue
Block a user