Skip to content

Commit

Permalink
restoring the duplicate removal functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Baalmart committed Dec 13, 2024
1 parent 01199ff commit f73622d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/auth-service/utils/create-preference.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,8 @@ const preferences = {
};
}

// const update = prepareUpdate(body, fieldsToUpdate, fieldsToAddToSet);
const update = body;
const update = prepareUpdate(body, fieldsToUpdate, fieldsToAddToSet);

const options = { upsert: true, new: true };

const modifyResponse = await PreferenceModel(tenant).findOneAndUpdate(
Expand Down

0 comments on commit f73622d

Please sign in to comment.