From a2b2f1892700f074957d173298ae1e98be090e56 Mon Sep 17 00:00:00 2001 From: Vitaly Tomilov Date: Sun, 24 Dec 2017 17:56:23 +0000 Subject: [PATCH] db connection context fix (#4453) 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 bd737650..0b7be499 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.