mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore(desktop): bypass query error
This commit is contained in:
parent
9907f7f60f
commit
03024ef7a9
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user