Moved approvals comments and views to shots page
Deploy / deploy (push) Successful in 2m36s

This commit is contained in:
twotalesanimation
2026-06-12 08:14:34 +02:00
parent d56f3b3ad5
commit 3248b8596a
2 changed files with 128 additions and 4 deletions
+17 -1
View File
@@ -51,7 +51,23 @@ export async function GET(
versions: {
take: 1,
orderBy: { versionNumber: "desc" },
select: { id: true, versionNumber: true, approvalStatus: true, createdAt: true },
select: {
id: true,
versionNumber: true,
approvalStatus: true,
createdAt: true,
approvals: {
take: 1,
orderBy: { createdAt: "desc" },
select: {
id: true,
status: true,
notes: true,
createdAt: true,
user: { select: { id: true, name: true, image: true } },
},
},
},
},
},
}),