From 8d08b0ed9c60c3ef4503413a33003d40e0e7832a Mon Sep 17 00:00:00 2001 From: WangDL Date: Sat, 23 May 2026 09:44:32 +0800 Subject: [PATCH] fix: remove deletedAt filter --- src/modules/files/admin-files.controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/files/admin-files.controller.ts b/src/modules/files/admin-files.controller.ts index 65cc48f..424ea61 100644 --- a/src/modules/files/admin-files.controller.ts +++ b/src/modules/files/admin-files.controller.ts @@ -20,12 +20,12 @@ export class AdminFilesController { const p = parseInt(page), l = parseInt(limit); const [items, total] = await Promise.all([ this.prisma.uploadedFile.findMany({ - where: { deletedAt: null }, + where: {}, orderBy: { createdAt: 'desc' }, skip: (p - 1) * l, take: l, include: { user: { select: { nickname: true, email: true } } }, }), - this.prisma.uploadedFile.count({ where: { deletedAt: null } }), + this.prisma.uploadedFile.count({ where: {} }), ]); return { items, total, page: p, limit: l, totalPages: Math.ceil(total / l) }; }