1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-01 00:08:27 +01:00

serve with metadata

This commit is contained in:
sveisvei 2016-12-09 22:01:43 +01:00
parent 3346108594
commit 4c454d5d08

View File

@ -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