Skip to content

Commit

Permalink
fixed then for import type requests of v1
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonSharratt committed Jan 22, 2020
1 parent 9d30c67 commit 8e83267
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions microservices/requestApi/routes/v2/db/model/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,12 @@ model.getAll = function(query, limit, page, user, callback){
}
},
else: {
then: {
$cond: {
if: {
$eq: [ "$exportType", baseModel.CODE_EXPORT_TYPE ]
},
then: DEFAULT_IMPORT_CODE_FORM,
else: DEFAULT_IMPORT_FORM
}
$cond: {
if: {
$eq: [ "$exportType", baseModel.CODE_EXPORT_TYPE ]
},
then: DEFAULT_IMPORT_CODE_FORM,
else: DEFAULT_IMPORT_FORM
}
}
}
Expand Down

0 comments on commit 8e83267

Please sign in to comment.