Skip to content

Commit

Permalink
Update dataHandlers.js
Browse files Browse the repository at this point in the history
  • Loading branch information
CGDogan committed Sep 17, 2023
1 parent 24c0afa commit 878aca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/dataHandlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ FSChanged.removed = function(db, collection, loader) {
for (const entry of slides) {
if (entry["filepath"] && entry["filepath"].includes(identifier)) {
try {
replacer.name = entry.name;
replacer.$set.name = entry.name;
await mongoDB.update(db, collection, {_id: entry._id.$oid}, replacer);
} catch (e) {
console.log(e);
Expand Down

0 comments on commit 878aca5

Please sign in to comment.