chore(core): fix references to core

This commit is contained in:
Elian Doran 2026-01-06 12:20:01 +02:00
parent c8d3b091fd
commit 05b9e2ec2a
No known key found for this signature in database
2 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,6 @@
import type { AttachmentRow, AttributeType, CloneResponse, NoteRow, NoteType, RevisionRow } from "@triliumnext/commons";
import { dayjs } from "@triliumnext/commons";
import { events as eventService } from "@triliumnext/core";
import eventService from "../../services/events";
import cloningService from "../../services/cloning.js";
import dateUtils from "../../services/utils/date";

View File

@ -1,10 +1,9 @@
import { binary_utils } from "@triliumnext/core";
import becca from "../becca/becca.js";
import { NotFoundError } from "../errors";
import type { Blob } from "./blob-interface.js";
import protectedSessionService from "./protected_session.js";
import { hash } from "./utils.js";
import { decodeUtf8 } from "./utils/binary.js";
function getBlobPojo(entityName: string, entityId: string, opts?: { preview: boolean }) {
// TODO: Unused opts.
@ -41,7 +40,7 @@ function processContent(content: Uint8Array | string | null, isProtected: boolea
if (isStringContent) {
if (content === null) return "";
if (typeof content === "string") return content;
return binary_utils.decodeUtf8(content as Uint8Array);
return decodeUtf8(content as Uint8Array);
}
// see https://github.com/zadam/trilium/issues/3523
// IIRC a zero-sized buffer can be returned as null from the database