fix: Saving Business hour throws an alert (#29449)

This commit is contained in:
Murtaza Patrawala 2023-06-06 12:30:18 +05:30 committed by GitHub
parent 1ca6d707d3
commit 37c792161f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"@rocket.chat/agenda": patch
---
fix: Saving Business hour throws an alert

View File

@ -466,7 +466,7 @@ export class Agenda extends EventEmitter {
const update = {
$set,
$setOnInsert,
...(Object.keys($setOnInsert).length && { $setOnInsert }),
};
// Try an upsert