[backend/drive] Don't store attachments if the download isn't successful

This commit is contained in:
Laura Hausmann 2024-05-23 00:23:54 +02:00
parent ba21cb2b0e
commit 9d0ee19922
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -87,6 +87,7 @@ public class DriveService(
try
{
var res = await httpClient.GetAsync(uri);
res.EnsureSuccessStatusCode();
var request = new DriveFileCreationRequest
{