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 16, 2023
1 parent 20ce452 commit a09a866
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 @@ -426,7 +426,7 @@ FSChanged.added = function(req, res) {
// It may be replaced with any other file in the folder or the user requested path
// given that we verify that it exists.
// but that's the purpose of FSChanged.removed
if (JSON.stringify(slides).includes(identifier)) {
if (slides.some((s) => (s["filepath"] || "").includes(identifier))) {
console.log("DEBUGME0: ")
console.log(JSON.stringify(slides))
// Success, to allow the client to notify for every new file, even if that won't make a new series.
Expand Down

0 comments on commit a09a866

Please sign in to comment.