server-esm: Solve a few straightforward cases

This commit is contained in:
Elian Doran
2024-07-18 23:35:13 +03:00
parent 013f25a49b
commit fe385bf2e4
7 changed files with 20 additions and 16 deletions

View File

@@ -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`;
}