attribute value is now non-null, fixes #52

This commit is contained in:
azivner
2018-02-16 19:07:59 -05:00
parent 6b9ff47c88
commit 3033f7cc08
3 changed files with 25 additions and 2 deletions

View File

@@ -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();