Skip to content

Commit

Permalink
fixing handling of v1 requests
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonSharratt committed Jan 23, 2020
1 parent 815d182 commit 1d4d3a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion microservices/requestApi/routes/v2/db/model/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ model.getAll = function(query, limit, page, user, callback){
workingReq['data'] = {};
for (var j=0; j<v1keys.length; j++){
if (schemaFields.indexOf(v1keys[j]) === -1){
workingReq['data'] = workingReq[v1keys[j]];
workingReq['data'][v1keys[j]] = workingReq[v1keys[j]];
delete workingReq[v1keys[j]];
}
}
Expand Down

0 comments on commit 1d4d3a3

Please sign in to comment.