Return nil instead of an error which returned a HTTP 500

This commit is contained in:
Till Faelligen 2023-07-07 12:31:04 +02:00
parent ca8fa0188d
commit 1d906a8b18
No known key found for this signature in database
GPG key ID: ACCDC9606D472758

View file

@ -743,7 +743,7 @@ func (a *UserInternalAPI) uploadBackupKeys(ctx context.Context, req *api.Perform
return res, fmt.Errorf("failed to query version: %w", err)
}
if deleted {
return res, fmt.Errorf("backup was deleted")
return res, nil
}
if version != req.Version {
return res, spec.WrongBackupVersionError(version)