feat: update ApiTokenGuard to always allow access, add updateDatabase method to ProjectService, enhance QueryExecuterService with job options, integrate QueueModule in QueryModule, apply ApiTokenGuard to RedisManagerController, refactor Plugin class to include methods, implement new methods in RedisPlugin, and remove unused async.js module

This commit is contained in:
Boris D
2025-10-09 11:56:53 +03:00
parent 6c95e9d5e0
commit dac008366a
15 changed files with 169 additions and 59 deletions

View File

@ -2,7 +2,6 @@
/* eslint-disable no-undef */
import "module/squel";
import "module/asyncCall";
import "plugin/db";
function createSQL(id) {
@ -11,9 +10,21 @@ function createSQL(id) {
async function main(input, headers) {
const sql = createSQL(input.id);
const res = await asyncCall(db, sql);
log(headers);
await db.execute("START TRANSACTION");
return { test: 1, array: [1, 2, [{ id: 1, name: "Test" }]] };
// log(await db.execute('insert into test (name) values ("Test")'));
const res = await db.execute(sql);
log(res);
return {
response: {
test: 1,
array: [1, 2, [{ id: 1, name: "Test" }]],
},
statusCode: 201,
headers: { "x-test-header": "test-header-value" },
};
}