Skip to content

Build your personal knowledge base with Trilium Notes

server: Fix missing .js import for blob_interface

Elian Doran2787feb593a4
diff --git a/src/services/blob.ts b/src/services/blob.ts
index 3226b88afc..03505075a7 100644
--- a/src/services/blob.ts
+++ b/src/services/blob.ts
@@ -2,7 +2,7 @@ import becca from "../becca/becca.js";
import NotFoundError from "../errors/not_found_error.js";
import protectedSessionService from "./protected_session.js";
import utils from "./utils.js";
-import type { Blob } from "./blob-interface";
+import type { Blob } from "./blob-interface.js";
function getBlobPojo(entityName: string, entityId: string, opts?: { preview: boolean }) {
// TODO: Unused opts.
diff --git a/src/services/entity_changes.ts b/src/services/entity_changes.ts
index 81ef2649b2..8937b49cdb 100644
--- a/src/services/entity_changes.ts
+++ b/src/services/entity_changes.ts
@@ -7,7 +7,7 @@ import instanceId from "./instance_id.js";
import becca from "../becca/becca.js";
import blobService from "../services/blob.js";
import { EntityChange } from './entity_changes_interface.js';
-import type { Blob } from "./blob-interface";
+import type { Blob } from "./blob-interface.js";
import eventService from "./events.js";
let maxEntityChangeId = 0;
diff --git a/src/share/shaca/entities/sattachment.ts b/src/share/shaca/entities/sattachment.ts
index 57d01298ac..dc0ad7953d 100644
--- a/src/share/shaca/entities/sattachment.ts
+++ b/src/share/shaca/entities/sattachment.ts
@@ -4,7 +4,7 @@ import sql from "../../sql.js";
import utils from "../../../services/utils.js";
import AbstractShacaEntity from "./abstract_shaca_entity.js";
import SNote from "./snote.js";
-import { Blob } from '../../../services/blob-interface';
+import { Blob } from '../../../services/blob-interface.js';
import { SAttachmentRow } from './rows.js';
class SAttachment extends AbstractShacaEntity {
diff --git a/src/share/shaca/entities/snote.ts b/src/share/shaca/entities/snote.ts
index 29dc1ea958..459b5d10f2 100644
--- a/src/share/shaca/entities/snote.ts
+++ b/src/share/shaca/entities/snote.ts
@@ -4,7 +4,7 @@ import sql from "../../sql.js";
import utils from "../../../services/utils.js";
import AbstractShacaEntity from "./abstract_shaca_entity.js";
import escape from "escape-html";
-import { Blob } from '../../../services/blob-interface';
+import { Blob } from '../../../services/blob-interface.js';
import SAttachment from "./sattachment.js";
import SAttribute from "./sattribute.js";
import SBranch from "./sbranch.js";