Update PostgresStorageAdapter.js (#6981)
* Update PostgresStorageAdapter.js
Start moving toward better, ES7 syntax.
* Update PostgresStorageAdapter.js
Fixing spaces 🤦♂️
This commit is contained in:
@@ -2463,20 +2463,19 @@ export class PostgresStorageAdapter implements StorageAdapter {
|
|||||||
});
|
});
|
||||||
return Promise.all(promises)
|
return Promise.all(promises)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
return this._client.tx('perform-initialization', t => {
|
return this._client.tx('perform-initialization', async t => {
|
||||||
return t.batch([
|
await t.none(sql.misc.jsonObjectSetKeys);
|
||||||
t.none(sql.misc.jsonObjectSetKeys),
|
await t.none(sql.array.add);
|
||||||
t.none(sql.array.add),
|
await t.none(sql.array.addUnique);
|
||||||
t.none(sql.array.addUnique),
|
await t.none(sql.array.remove);
|
||||||
t.none(sql.array.remove),
|
await t.none(sql.array.containsAll);
|
||||||
t.none(sql.array.containsAll),
|
await t.none(sql.array.containsAllRegex);
|
||||||
t.none(sql.array.containsAllRegex),
|
await t.none(sql.array.contains);
|
||||||
t.none(sql.array.contains),
|
return t.ctx;
|
||||||
]);
|
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.then(data => {
|
.then(ctx => {
|
||||||
debug(`initializationDone in ${data.duration}`);
|
debug(`initializationDone in ${ctx.duration}`);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
/* eslint-disable no-console */
|
/* eslint-disable no-console */
|
||||||
|
|||||||
Reference in New Issue
Block a user