Skip to content

Commit

Permalink
fix: Saving Business hour throws an alert (#29449)
Browse files Browse the repository at this point in the history
  • Loading branch information
murtaza98 authored Jun 6, 2023
1 parent 1ca6d70 commit 37c7921
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/modern-terms-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/agenda": patch
---

fix: Saving Business hour throws an alert
2 changes: 1 addition & 1 deletion packages/agenda/src/Agenda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ export class Agenda extends EventEmitter {

const update = {
$set,
$setOnInsert,
...(Object.keys($setOnInsert).length && { $setOnInsert }),
};

// Try an upsert
Expand Down

0 comments on commit 37c7921

Please sign in to comment.