mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 17:25:52 +01:00
server-esm: Solve a few straightforward cases
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import noteTypeService from "../services/note_types.js";
|
||||
import dateUtils from "../services/date_utils.js";
|
||||
import becca from "../becca/becca.js";
|
||||
|
||||
function mandatory(obj: unknown) {
|
||||
if (obj === undefined) {
|
||||
@@ -64,8 +65,6 @@ function isNoteId(obj: unknown) {
|
||||
return;
|
||||
}
|
||||
|
||||
const becca = require('../becca/becca');
|
||||
|
||||
if (typeof obj !== 'string') {
|
||||
return `'${obj}' is not a valid noteId`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user