Commit 38e0829
Bill
fix(backup): await async operations in scheduled backup interval
Greptile review found that setInterval callback was not awaiting
the async createBackup() and pruneBackups() calls, which would
cause unhandled promise rejections instead of being caught by
the try/catch block.1 parent fc7373a commit 38e0829
1 file changed
Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 41 | + | |
| 42 | + | |
46 | 43 | | |
47 | 44 | | |
48 | 45 | | |
| |||
402 | 399 | | |
403 | 400 | | |
404 | 401 | | |
405 | | - | |
| 402 | + | |
406 | 403 | | |
407 | | - | |
408 | | - | |
| 404 | + | |
| 405 | + | |
409 | 406 | | |
410 | 407 | | |
411 | 408 | | |
| |||
0 commit comments