From b12a188faf42d760f5952ef36346907d1f05f54c Mon Sep 17 00:00:00 2001 From: ivaosthu Date: Mon, 5 Dec 2016 15:50:34 +0100 Subject: [PATCH] amend prev commit --- lib/db/client-strategy-store.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/db/client-strategy-store.js b/lib/db/client-strategy-store.js index d77edff1a4..35287ffa52 100644 --- a/lib/db/client-strategy-store.js +++ b/lib/db/client-strategy-store.js @@ -55,7 +55,8 @@ class ClientStrategyStore { .select('strategies') .where('app_name', appName) .from(TABLE) - .map((row) => row.strategies); + .map((row) => row.strategies) + .then(arr => arr[0]) } };