typescript magic

This commit is contained in:
2025-06-21 16:48:26 +02:00
parent 9092012cf7
commit faa3eaa007

View File

@ -34,7 +34,7 @@ export async function addReport(report: Report) {
const { data, error } = await actions.report.addReport({ const { data, error } = await actions.report.addReport({
reason: report.reason, reason: report.reason,
body: report.body, body: report.body,
createdAt: report.createdAt, createdAt: report.createdAt as unknown as string,
reporter: report.reporter.id, reporter: report.reporter.id,
reported: report.reported?.id ?? null reported: report.reported?.id ?? null
}); });