rework api endpoints
All checks were successful
deploy / build-and-deploy (push) Successful in 19s

This commit is contained in:
2025-10-17 20:15:06 +02:00
parent a27cf5f35b
commit 964ccfacbf
10 changed files with 266 additions and 189 deletions

View File

@@ -120,11 +120,13 @@ export async function getReports(db: Database, values: GetReportsReq) {
createdAt: report.createdAt,
reporter: {
id: reporter.id,
username: reporter.username
username: reporter.username,
uuid: reporter.uuid
},
reported: {
id: reported.id,
username: reported.username
username: reported.username,
uuid: reported.uuid
},
status: {
status: reportStatus.status,