small fixes

This commit is contained in:
zadam
2020-02-18 22:16:20 +01:00
parent d288c1b052
commit 2e3534dfb7
4 changed files with 23 additions and 6 deletions

View File

@@ -36,7 +36,7 @@ const RELATION_DEFINITION = 'relation-definition';
class Note extends Entity {
static get entityName() { return "notes"; }
static get primaryKeyName() { return "noteId"; }
static get hashedProperties() { return ["noteId", "title", "type", "isProtected", "isDeleted", "deleteId"]; }
static get hashedProperties() { return ["noteId", "title", "type", "mime", "isProtected", "isDeleted", "deleteId"]; }
/**
* @param row - object containing database row from "notes" table