From 4c454d5d084f7c9469e77a10fb682eaaaf446192 Mon Sep 17 00:00:00 2001 From: sveisvei Date: Fri, 9 Dec 2016 22:01:43 +0100 Subject: [PATCH] serve with metadata --- lib/db/client-applications-store.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/db/client-applications-store.js b/lib/db/client-applications-store.js index ff2d95751f..e4d4a79993 100644 --- a/lib/db/client-applications-store.js +++ b/lib/db/client-applications-store.js @@ -2,7 +2,6 @@ 'use strict'; const COLUMNS = ['app_name', 'created_at', 'updated_at', 'description', 'strategies', 'url', 'color', 'icon']; -const COLUMNS_LIST = ['app_name', 'created_at', 'strategies']; const TABLE = 'client_applications'; const mapRow = (row) => ({ @@ -61,7 +60,7 @@ class ClientApplicationsDb { getAll () { return this.db - .select(COLUMNS_LIST) + .select(COLUMNS) .from(TABLE) .map(mapRow); } @@ -86,7 +85,7 @@ class ClientApplicationsDb { */ getAppsForStrategy (strategyName) { return this.db - .select(COLUMNS_LIST) + .select(COLUMNS) .from(TABLE) .map(mapRow) .then(apps => apps