Skip to content

Commit

Permalink
Remove addToSet
Browse files Browse the repository at this point in the history
* remove add to set
  • Loading branch information
Elkrival committed Jun 7, 2024
1 parent 5520f24 commit 5cba647
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/models/SiteMetadataModel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ const SiteMetadataModel = {
query,
{
$set: { ...(setAttributes || {}), updatedAt: new Date() },
$addToSet: Object.keys(addToSetAttributes || {}).length
? { ...addToSetAttributes, createdAt: new Date() }
: {},
// $addToSet: Object.keys(addToSetAttributes || {}).length
// ? { ...addToSetAttributes, createdAt: new Date() }
// : {},
},
queryOptions
)
Expand Down

0 comments on commit 5cba647

Please sign in to comment.