feat: add isAdmin column to token entity; implement migration for isAdmin; enhance logging and error handling in query execution; update query plugin to support new logging structure

This commit is contained in:
lborv
2025-10-11 17:59:06 +03:00
parent 57e4a8b932
commit 08a62fa2c5
13 changed files with 135 additions and 55 deletions

View File

@ -15,11 +15,7 @@ export class QueryPlugin extends Plugin {
return new QueryPlugin("query", query, queryExecuterService);
}
async run(data: {
token: string;
queryData: any;
headers?: Record<string, any>;
}): Promise<any> {
async run(id: string, data: any): Promise<any> {
const query = await this.QueryExecuterService.queryRepository.findOne({
where: { id: this.query.id },
});
@ -35,9 +31,11 @@ export class QueryPlugin extends Plugin {
}
return await this.QueryExecuterService.runQuery(
query.id,
data.queryData,
data.headers
id,
data,
this.headers,
this.cookies,
this.log
);
}