diff --git a/src/Adapters/Storage/Postgres/PostgresStorageAdapter.js b/src/Adapters/Storage/Postgres/PostgresStorageAdapter.js index bd7376504e..0b7be499c4 100644 --- a/src/Adapters/Storage/Postgres/PostgresStorageAdapter.js +++ b/src/Adapters/Storage/Postgres/PostgresStorageAdapter.js @@ -729,7 +729,7 @@ export class PostgresStorageAdapter { const values = [className, ...valuesArray]; return conn.task(t => { return this._ensureSchemaCollectionExists(t) - .then(() => conn.none(qs, values)) + .then(() => t.none(qs, values)) .catch(error => { if (error.code === PostgresDuplicateRelationError) { // Table already exists, must have been created by a different request. Ignore error.