feat: implement session management with SessionService and SessionPlugin; refactor query execution to handle session cookies; update token and query handling for improved session tracking
This commit is contained in:
@ -7,6 +7,7 @@ export interface QueryJob {
|
||||
token: string;
|
||||
queryData: any;
|
||||
headers: Record<string, any>;
|
||||
cookies: Record<string, any>;
|
||||
}
|
||||
|
||||
@Processor(QUEUE_NAMES.QUERY, { concurrency: 5 })
|
||||
@ -16,8 +17,13 @@ export class QueryProcessor extends WorkerHost {
|
||||
}
|
||||
|
||||
async process(job: Job<QueryJob>) {
|
||||
const { token, queryData, headers } = job.data;
|
||||
const { token, queryData, headers, cookies } = job.data;
|
||||
|
||||
return await this.queryExecuterService.runQuery(token, queryData, headers);
|
||||
return await this.queryExecuterService.runQuery(
|
||||
token,
|
||||
queryData,
|
||||
headers,
|
||||
cookies
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user