Fix: Add guards to backup to exit early on deleted accounts (#40053)

This commit is contained in:
Shlee authored and GitHub committed 2026-08-05 11:39:15 +00:00
1 parent b625f21cea
commit 7f4800ebf3
1 file changed
+4 -2
+4 -2
View File
@@ -17,8 +17,10 @@ class BackupWorker
end
def perform(backup_id)
backup = Backup.find(backup_id)
user = backup.user
backup = Backup.find_by(id: backup_id)
return true if backup&.user.nil?
user = backup.user
BackupService.new.call(backup)