Skip to content

Commit

Permalink
added v1 projection in v2 as it won't have any effect on v2 documents…
Browse files Browse the repository at this point in the history
… but will make v1 docs continue to work
  • Loading branch information
BrandonSharratt committed Jan 23, 2020
1 parent c0b100b commit 969c19e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions microservices/requestApi/routes/v2/db/model/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,23 @@ model.getAll = function(query, limit, page, user, callback){
files: 1,
author: 1,
project: 1,

//v1 includes, will have no effect on v2 documents
tags: 1,
phoneNumber: 1,
purpose: 1,
variableDescriptions: 1,
subPopulation: 1,
selectionCriteria: 1,
steps: 1,
freq: 1,
confidentiality: 1,
branch: 1,
externalRepository: 1,
repository: 1,
mergeRequestLink: 1,
codeDescription: 1,

formName: {
$ifNull: ["$formName", {
$cond: {
Expand Down

0 comments on commit 969c19e

Please sign in to comment.