Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(desktop): bypass query error
Elian Doran03024ef7a943
diff --git a/apps/server/src/routes/electron.ts b/apps/server/src/routes/electron.tsindex 6235524896..70a9205fc7 100644--- a/apps/server/src/routes/electron.ts+++ b/apps/server/src/routes/electron.ts@@ -49,12 +49,13 @@ interface Arg {headers: Record<string, string>}-class FakeRequest extends EventEmitter implements Pick<Request<ParamsDictionary, any, any, QueryString.ParsedQs, Record<string, any>>, "url" | "method" | "body" | "headers" | "session"> {+class FakeRequest extends EventEmitter implements Pick<Request<ParamsDictionary, any, any, QueryString.ParsedQs, Record<string, any>>, "url" | "method" | "body" | "headers" | "session" | "query"> {url: string;method: string;body: any;headers: Record<string, string>;session: Session & Partial<SessionData>;+ query: Record<string, any> = {};constructor(arg: Arg) {super();