diff --git a/src/watcher/watcher.repository.ts b/src/watcher/watcher.repository.ts index 4814e4b..a5bcabe 100644 --- a/src/watcher/watcher.repository.ts +++ b/src/watcher/watcher.repository.ts @@ -28,7 +28,7 @@ export class WatcherRepository { } async updateWatcher(filter: Record, update: Record) { - return WatcherModel.findOneAndUpdate(filter, update); + return WatcherModel.findOneAndUpdate(filter, update).exec(); } async deleteWatcher(filer: Record) {