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

This commit is contained in:
Shlee
2026-08-05 21:09:15 +09:30
committed by GitHub
parent b625f21cea
commit 7f4800ebf3

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)