From cd435715bba304be8b95cbee1cd9c1b0726ba5da Mon Sep 17 00:00:00 2001 From: Vitaly Tomilov Date: Sun, 24 Dec 2017 16:44:12 +0000 Subject: [PATCH] db connection context fix fixing use of the wrong connection context inside a task --- src/Adapters/Storage/Postgres/PostgresStorageAdapter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.