Skip to content

Commit

Permalink
chore: Switch order for file deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
MH321Productions committed Nov 8, 2024
1 parent 2d26c7c commit a95fdec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public async Task Delete(File file, CancellationToken cancellationToken)
_blobStorage.Remove(_blobOptions.RootFolder, file.Id);
_files.Remove(file);

await _blobStorage.SaveAsync();
await _dbContext.SaveChangesAsync(cancellationToken);
await _blobStorage.SaveAsync();
}

public async Task DeleteFilesOfIdentity(Expression<Func<File, bool>> filter, CancellationToken cancellationToken)
Expand Down

0 comments on commit a95fdec

Please sign in to comment.