Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 03024ef

Browse files
committed
chore(desktop): bypass query error
1 parent 9907f7f commit 03024ef

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/server/src/routes/electron.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,13 @@ interface Arg {
4949
headers: Record<string, string>
5050
}
5151

52-
class FakeRequest extends EventEmitter implements Pick<Request<ParamsDictionary, any, any, QueryString.ParsedQs, Record<string, any>>, "url" | "method" | "body" | "headers" | "session"> {
52+
class FakeRequest extends EventEmitter implements Pick<Request<ParamsDictionary, any, any, QueryString.ParsedQs, Record<string, any>>, "url" | "method" | "body" | "headers" | "session" | "query"> {
5353
url: string;
5454
method: string;
5555
body: any;
5656
headers: Record<string, string>;
5757
session: Session & Partial<SessionData>;
58+
query: Record<string, any> = {};
5859

5960
constructor(arg: Arg) {
6061
super();

0 commit comments

Comments
 (0)