feat(safety): add API route for editing report

This commit is contained in:
Paul Makles
2023-03-02 12:54:55 +00:00
parent c09244039e
commit 8f1ff9e774
15 changed files with 134 additions and 14 deletions

View File

@@ -149,7 +149,8 @@ pub async fn report_content(db: &Db, user: User, data: Json<DataReportContent>)
author_id: user.id,
content: data.content,
additional_context: data.additional_context,
status: ReportStatus::Created,
status: ReportStatus::Created {},
notes: String::new(),
};
db.insert_report(&report).await?;