Skip to content

Commit

Permalink
adding field names from schema
Browse files Browse the repository at this point in the history
  • Loading branch information
mattquestions committed Jun 19, 2017
1 parent 756e841 commit 1d8a17d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions server/service-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@ const debug = require('debug')('sample');
const TOKEN_PATH = '/v2/identity/token';

const modelInfo = require('../config/model.json');

var schema = []

modelInfo['model-schema'].map(function(obj) {
schema.push(obj[Object.keys(obj)[0]])
})
var schema = modelInfo['model-schema'].map(obj => obj.name)

function getTokenFromTokenEndoint(tokenEndpoint, user, password) {
debug('getTokenFromTokenEndoint', tokenEndpoint);
Expand Down

0 comments on commit 1d8a17d

Please sign in to comment.