mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 10:40:41 +01:00
attribute value is now non-null, fixes #52
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
const build = require('./build');
|
||||
const packageJson = require('../../package');
|
||||
|
||||
const APP_DB_VERSION = 76;
|
||||
const APP_DB_VERSION = 77;
|
||||
|
||||
module.exports = {
|
||||
app_version: packageJson.version,
|
||||
|
||||
@@ -52,7 +52,7 @@ async function getNoteIdsWithAttribute(name) {
|
||||
WHERE notes.isDeleted = 0 AND attributes.isDeleted = 0 AND attributes.name = ? AND attributes.isDeleted = 0`, [name]);
|
||||
}
|
||||
|
||||
async function createAttribute(noteId, name, value = null, sourceId = null) {
|
||||
async function createAttribute(noteId, name, value = "", sourceId = null) {
|
||||
const now = utils.nowDate();
|
||||
const attributeId = utils.newAttributeId();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user