typescript magic
This commit is contained in:
@ -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
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user