mirror of
https://github.com/zadam/trilium.git
synced 2026-01-15 11:04:30 +01:00
chore(core): fix references to core
This commit is contained in:
parent
c8d3b091fd
commit
05b9e2ec2a
@ -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";
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user