[backend/drive] Don't store attachments if the download isn't successful
This commit is contained in:
parent
ba21cb2b0e
commit
9d0ee19922
1 changed files with 1 additions and 0 deletions
|
@ -87,6 +87,7 @@ public class DriveService(
|
|||
try
|
||||
{
|
||||
var res = await httpClient.GetAsync(uri);
|
||||
res.EnsureSuccessStatusCode();
|
||||
|
||||
var request = new DriveFileCreationRequest
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue