[backend/api] Correctly return file ID for drive folder files

This commit is contained in:
pancakes 2024-12-15 16:59:24 +10:00 committed by Laura Hausmann
parent 76054927f7
commit a2e3c475d0
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -251,7 +251,7 @@ public class DriveController(
.Where(p => p.FolderId == id && p.UserId == user.Id) .Where(p => p.FolderId == id && p.UserId == user.Id)
.Select(p => new DriveFileResponse .Select(p => new DriveFileResponse
{ {
Id = p.Name, Id = p.Id,
Url = p.AccessUrl, Url = p.AccessUrl,
ThumbnailUrl = p.ThumbnailAccessUrl, ThumbnailUrl = p.ThumbnailAccessUrl,
Filename = p.Name, Filename = p.Name,