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:
Boris D
2025-10-10 14:03:21 +03:00
parent 5513dccc11
commit 210253628c
13 changed files with 205 additions and 25 deletions

View File

@ -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
);
}
}