Skip to content

Commit 171870e

Browse files
vitaly-tflovilmart
authored andcommitted
db connection context fix (#4453)
fixing use of the wrong connection context inside a task
1 parent 46f8bce commit 171870e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adapters/Storage/Postgres/PostgresStorageAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ export class PostgresStorageAdapter implements StorageAdapter {
736736
const values = [className, ...valuesArray];
737737
return conn.task(t => {
738738
return this._ensureSchemaCollectionExists(t)
739-
.then(() => conn.none(qs, values))
739+
.then(() => t.none(qs, values))
740740
.catch(error => {
741741
if (error.code === PostgresDuplicateRelationError) {
742742
// Table already exists, must have been created by a different request. Ignore error.

0 commit comments

Comments
 (0)