[backend/drive] Fix logExisting oversight causing uris not to be logged in all cases

This commit is contained in:
Laura Hausmann 2024-04-30 17:03:04 +02:00
parent 9f356b8139
commit dd062c6752
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -85,6 +85,9 @@ public class DriveService(
await db.SaveChangesAsync();
return clonedFile;
}
if (!logExisting)
logger.LogDebug("Storing file {uri} for user {userId}", uri, user.Id);
var res = await httpClient.GetAsync(uri);