refactor(services): use named imports from utils

This commit is contained in:
Panagiotis Papadopoulos
2025-01-02 13:47:44 +01:00
parent 3814621e1c
commit 7fe23c7ac2
34 changed files with 122 additions and 122 deletions

View File

@@ -1,7 +1,7 @@
import log from "./log.js";
import noteService from "./notes.js";
import sql from "./sql.js";
import utils from "./utils.js";
import { randomString, escapeHtml, unescapeHtml } from "./utils.js";
import attributeService from "./attributes.js";
import dateNoteService from "./date_notes.js";
import treeService from "./tree.js";
@@ -549,9 +549,9 @@ function BackendScriptApi(this: Api, currentNote: BNote, apiParams: ApiParams) {
this.setNoteToParent = treeService.setNoteToParent;
this.transactional = sql.transactional;
this.randomString = utils.randomString;
this.escapeHtml = utils.escapeHtml;
this.unescapeHtml = utils.unescapeHtml;
this.randomString = randomString;
this.escapeHtml = escapeHtml;
this.unescapeHtml = unescapeHtml;
this.sql = sql;
this.getAppInfo = () => appInfo;