server-ts: Fix most errors in bnote

This commit is contained in:
Elian Doran
2024-02-17 10:56:27 +02:00
parent f9ba8ca87d
commit 9aec3390dd
10 changed files with 359 additions and 362 deletions

View File

@@ -15,10 +15,8 @@ import { BranchRow } from './rows.js';
*
* Note that you should not rely on the branch's identity, since it can change easily with a note's move.
* Always check noteId instead.
*
* @extends AbstractBeccaEntity
*/
class BBranch extends AbstractBeccaEntity {
class BBranch extends AbstractBeccaEntity<BBranch> {
static get entityName() { return "branches"; }
static get primaryKeyName() { return "branchId"; }
// notePosition is not part of hash because it would produce a lot of updates in case of reordering
@@ -27,7 +25,7 @@ class BBranch extends AbstractBeccaEntity {
branchId?: string;
noteId!: string;
parentNoteId!: string;
prefix!: string;
prefix!: string | null;
notePosition!: number;
isExpanded!: boolean;
utcDateModified?: string;