Skip to content

Commit 6648bcb

Browse files
authored
db connection context fix (parse-community#4453)
fixing use of the wrong connection context inside a task
1 parent 20ffad4 commit 6648bcb

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
@@ -729,7 +729,7 @@ export class PostgresStorageAdapter {
729729
const values = [className, ...valuesArray];
730730
return conn.task(t => {
731731
return this._ensureSchemaCollectionExists(t)
732-
.then(() => conn.none(qs, values))
732+
.then(() => t.none(qs, values))
733733
.catch(error => {
734734
if (error.code === PostgresDuplicateRelationError) {
735735
// Table already exists, must have been created by a different request. Ignore error.

0 commit comments

Comments
 (0)