Fix: Add guards to backup to exit early on deleted accounts (#40053)
This commit is contained in:
1 parent
b625f21cea
commit
7f4800ebf3
1 file changed
+4
-2
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user