Skip to content

Commit

Permalink
WIP fix broken editing of the case
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislaw-zakrzewski committed Nov 22, 2024
1 parent 33b69dd commit 03c8e4a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions data-serving/data-service/src/controllers/case.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ const caseFromDTO = async (receivedCase: CaseDTO) => {
};
}
}
aCase.bundleId = new ObjectId(aCase.bundleId)

return aCase;
};
Expand Down
10 changes: 10 additions & 0 deletions data-serving/scripts/setup-db/schemas/day0cases.indexes.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@
}
}
},
{
"name": "bundleIdIdx",
"key": {
"bundleId": -1
},
"collation": {
"locale": "en_US",
"strength": 2
}
},
{
"name": "demographicsGenderIdx",
"key": {
Expand Down
3 changes: 3 additions & 0 deletions data-serving/scripts/setup-db/schemas/day0cases.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"__v": {
"bsonType": "int"
},
"bundleId": {
"bsonType": "objectId"
},
"list": {
"bsonType": "bool"
},
Expand Down

0 comments on commit 03c8e4a

Please sign in to comment.