From 2eb9e878b1eeb43c802ffec93aa7b42183b7be51 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]) } };