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:
@ -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" },
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user