File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed
src/Adapters/Storage/Postgres Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -2463,20 +2463,19 @@ export class PostgresStorageAdapter implements StorageAdapter {
2463
2463
});
2464
2464
return Promise.all(promises)
2465
2465
.then(() => {
2466
- return this._client.tx('perform-initialization', t => {
2467
- return t.batch([
2468
- t.none(sql.misc.jsonObjectSetKeys),
2469
- t.none(sql.array.add),
2470
- t.none(sql.array.addUnique),
2471
- t.none(sql.array.remove),
2472
- t.none(sql.array.containsAll),
2473
- t.none(sql.array.containsAllRegex),
2474
- t.none(sql.array.contains),
2475
- ]);
2466
+ return this._client.tx('perform-initialization', async t => {
2467
+ await t.none(sql.misc.jsonObjectSetKeys);
2468
+ await t.none(sql.array.add);
2469
+ await t.none(sql.array.addUnique);
2470
+ await t.none(sql.array.remove);
2471
+ await t.none(sql.array.containsAll);
2472
+ await t.none(sql.array.containsAllRegex);
2473
+ await t.none(sql.array.contains);
2474
+ return t.ctx;
2476
2475
});
2477
2476
})
2478
- .then(data => {
2479
- debug(` initializationDone in $ { data . duration } `);
2477
+ .then(ctx => {
2478
+ debug(` initializationDone in $ { ctx . duration } `);
2480
2479
})
2481
2480
.catch(error => {
2482
2481
/* eslint-disable no-console */
You can’t perform that action at this time.
0 commit comments