Skip to content

Commit

Permalink
feat: add logs for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
serezhaolshan committed Jul 9, 2024
1 parent 42a94aa commit b806dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/watcher/watcher.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class WatcherRepository {
}

async updateWatcher(filter: Record<string, string>, update: Record<string, unknown>) {
return WatcherModel.findOneAndUpdate(filter, update);
return WatcherModel.findOneAndUpdate(filter, update).exec();
}

async deleteWatcher(filer: Record<string, string>) {
Expand Down

0 comments on commit b806dc3

Please sign in to comment.