Update packages/backend/src/core/entities/DriveFileEntityService.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
おさむのひと 2026-01-03 16:21:32 +09:00 committed by GitHub
parent b8a63efc4a
commit 83bb9564cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ export class DriveFileEntityService {
folder: opts.detail && file.folderId ? (hint?.packedFolder ?? this.driveFolderEntityService.pack(file.folderId, {
detail: true,
})) : null,
userId: file.userId,
userId: opts.withUser ? file.userId : null,
user: (opts.withUser && file.userId) ? hint?.packedUser ?? this.userEntityService.pack(file.userId) : null,
});
}