Skip to content

Commit 9544b2a

Browse files
fix(backups): optional chaining for logCleanupCron
1 parent 85632fd commit 9544b2a

File tree

1 file changed

+1
-1
lines changed
  • packages/server/src/utils/backups

1 file changed

+1
-1
lines changed

packages/server/src/utils/backups/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export const initCronJobs = async () => {
8282
}
8383
}
8484

85-
if (admin?.user.logCleanupCron) {
85+
if (admin?.user?.logCleanupCron) {
8686
console.log("Starting log requests cleanup", admin.user.logCleanupCron);
8787
await startLogCleanup(admin.user.logCleanupCron);
8888
}

0 commit comments

Comments
 (0)