Skip to content

Build your personal knowledge base with Trilium Notes

server: Fix missing .js import for etapi-interface

Elian Doran3067380338e2
diff --git a/src/etapi/attachments.ts b/src/etapi/attachments.ts
index cebd3f98c4..949a6984d9 100644
--- a/src/etapi/attachments.ts
+++ b/src/etapi/attachments.ts
@@ -5,7 +5,7 @@ import v from "./validators.js";
import utils from "../services/utils.js";
import { Router } from 'express';
import { AttachmentRow } from '../becca/entities/rows.js';
-import { ValidatorMap } from './etapi-interface';
+import { ValidatorMap } from './etapi-interface.js';
function register(router: Router) {
const ALLOWED_PROPERTIES_FOR_CREATE_ATTACHMENT: ValidatorMap = {
diff --git a/src/etapi/attributes.ts b/src/etapi/attributes.ts
index 637de157b5..4d749744ba 100644
--- a/src/etapi/attributes.ts
+++ b/src/etapi/attributes.ts
@@ -5,7 +5,7 @@ import attributeService from "../services/attributes.js";
import v from "./validators.js";
import { Router } from 'express';
import { AttributeRow } from '../becca/entities/rows.js';
-import { ValidatorMap } from './etapi-interface';
+import { ValidatorMap } from './etapi-interface.js';
function register(router: Router) {
eu.route(router, 'get', '/etapi/attributes/:attributeId', (req, res, next) => {
diff --git a/src/etapi/etapi_utils.ts b/src/etapi/etapi_utils.ts
index f869fd7db5..989709b20b 100644
--- a/src/etapi/etapi_utils.ts
+++ b/src/etapi/etapi_utils.ts
@@ -6,7 +6,7 @@ import etapiTokenService from "../services/etapi_tokens.js";
import config from "../services/config.js";
import { NextFunction, Request, RequestHandler, Response, Router } from 'express';
import { AppRequest, AppRequestHandler } from '../routes/route-interface';
-import { ValidatorMap } from './etapi-interface';
+import { ValidatorMap } from './etapi-interface.js';
const GENERIC_CODE = "GENERIC";
type HttpMethod = "all" | "get" | "post" | "put" | "delete" | "patch" | "options" | "head";
diff --git a/src/etapi/notes.ts b/src/etapi/notes.ts
index 8bb644ab17..5552672fa2 100644
--- a/src/etapi/notes.ts
+++ b/src/etapi/notes.ts
@@ -15,7 +15,7 @@ import { ParsedQs } from 'qs';
import { NoteParams } from '../services/note-interface';
import BNote from "../becca/entities/bnote.js";
import { SearchParams } from '../services/search/services/types';
-import { ValidatorMap } from './etapi-interface';
+import { ValidatorMap } from './etapi-interface.js';
function register(router: Router) {
eu.route(router, 'get', '/etapi/notes', (req, res, next) => {