Skip to content

Commit

Permalink
Fourth commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul McCafferty committed Sep 23, 2021
1 parent acbc5f5 commit a33c408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/dataset/utils/datasetonboarding.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ const buildBulkUploadObject = async arrayOfDraftDatasets => {
let publisher = {};
if (!isEmpty(dataset.summary.publisher)) {
//Check to see that publisher exists
publisher = await PublisherModel.findOne({ _id: dataset.summary.publisher }).lean();
publisher = await PublisherModel.findOne({ _id: { $eq: dataset.summary.publisher } }).lean();
if (isEmpty(publisher)) {
resultObject.error = `${dataset.summary.title} failed because publisher was no found`;
resultObject.result = false;
Expand Down

0 comments on commit a33c408

Please sign in to comment.