This commit is contained in:
@@ -73,9 +73,12 @@ export async function addReport(db: Database, values: AddReportReq) {
|
||||
}
|
||||
|
||||
export async function editReport(db: Database, values: EditReportReq) {
|
||||
return db.update(report).set({
|
||||
reportedId: values.reportedId
|
||||
});
|
||||
return db
|
||||
.update(report)
|
||||
.set({
|
||||
reportedId: values.reportedId
|
||||
})
|
||||
.where(eq(report.id, values.id));
|
||||
}
|
||||
|
||||
export async function submitReport(db: Database, values: SubmitReportReq) {
|
||||
|
||||
Reference in New Issue
Block a user