feat: enhance password generation method; improve connection pooling logic in DatabasePlugin; update test cases with correct tokens

This commit is contained in:
Boris D
2025-10-13 09:12:47 +03:00
parent c4755f5346
commit 73999de32e
5 changed files with 21 additions and 15 deletions

View File

@ -36,13 +36,13 @@ import runQuery from "../functions/runQuery";
// const payloadPath = path.join(__dirname, "case1-payload.js");
// const query = await createQuery(
// { token: "c69c2c75-9b30-4aa5-9641-0a931f5aad40" },
// { token: "04c38f93-f2fb-4d2c-a8e2-791effa35239" },
// fs.readFileSync(payloadPath, { encoding: "utf-8" })
// );
// console.log(query);
const result = await runQuery("66e651f0-261b-4ebd-9749-077abffaddc2", {
const result = await runQuery("9468cf88-24f6-436a-bf42-27827329111e", {
id: 1,
});

View File

@ -9,7 +9,7 @@ export default async (project: { token: string }, source: string) => {
source,
projectToken: project.token,
},
{ headers: { "x-api-token": "43c2e96e-af25-4467-9103-1479daa6288d" } }
{ headers: { "x-api-token": "efbeccd6-dde1-47dc-b3aa-4fbd773d5429" } }
);
return response.data;
} catch (error) {

View File

@ -8,7 +8,7 @@ export default async (token: string, queryData: Record<string, any>) => {
queryData,
{
headers: {
"x-api-token": "43c2e96e-af25-4467-9103-1479daa6288d",
"x-api-token": "efbeccd6-dde1-47dc-b3aa-4fbd773d5429",
Cookie: `x-session-id=gTEd90aRJFmLzJKu_1760193754588`,
},
}