Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
killagu committed Apr 18, 2024
1 parent aacb7f8 commit 3668349
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ coverage
lib
.eslintcache
package-lock.json
.idea
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class RDSClient extends Operator {
if (options?.conn) {
conn = options.conn;
} else {
let ctx = this.#connectionStorage.getStore();
const ctx = this.#connectionStorage.getStore();
const ctxConn = ctx?.[this.#connectionStorageKey];
if (ctxConn) {
conn = ctxConn;
Expand Down
8 changes: 4 additions & 4 deletions test/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ describe('test/client.test.ts', () => {
await db.beginTransactionScope(async () => {
await db.query(`insert into ??(name, email, gmt_create, gmt_modified)
values(?, ?, now(), now())`,
[ table, prefix + 'multiple-instance1', prefix + '[email protected]' ]);
[ table, prefix + 'multiple-instance1', prefix + '[email protected]' ]);
return db;
});
assert(querySql);
Expand All @@ -675,9 +675,9 @@ describe('test/client.test.ts', () => {
await db.beginTransactionScope(async () => {
await db.query(`insert into ??(name, email, gmt_create, gmt_modified)
values(?, ?, now(), now())`,
[ table, prefix + 'multiple-instance1', prefix + '[email protected]' ], {
conn
});
[ table, prefix + 'multiple-instance1', prefix + '[email protected]' ], {
conn,
});
return db;
});
assert(connQuerySql);
Expand Down

0 comments on commit 3668349

Please sign in to comment.