Skip to content

Commit f4baf08

Browse files
author
Daniel Truong
authored
Fixed issue where mineGuid was not being set (#519)
1 parent b768035 commit f4baf08

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/src/utils/post-utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ exports.createRecordWithFlavours = async function (args, res, next, incomingObj,
110110
mineBCMI = await Model.findOne(
111111
{
112112
_schemaName: 'MineBCMI',
113-
epicProjectIDs: { $in: [new ObjectId(incomingObj._epicProjectId)] },
113+
_epicProjectIds: { $in: [new ObjectId(incomingObj._epicProjectId)] },
114114
}
115115
);
116116
} catch (e) {

api/src/utils/put-utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ exports.editRecordWithFlavours = async function (args, res, next, incomingObj, e
234234
try {
235235
mineBCMI = await MineBCMI.findOne(
236236
{
237-
epicProjectIDs: { $in: [new ObjectId(incomingObj._epicProjectId)] },
237+
_epicProjectIds: { $in: [new ObjectId(incomingObj._epicProjectId)] },
238238
}
239239
);
240240
} catch (e) {

0 commit comments

Comments
 (0)