mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 03:55:59 +00:00
Update apps/labrinth/src/routes/v3/reports.rs
Co-authored-by: aecsocket <43144841+aecsocket@users.noreply.github.com> Signed-off-by: Blodhgarm <timekeeperguild@gmail.com>
This commit is contained in:
@@ -207,10 +207,10 @@ pub async fn report_create(
|
|||||||
.wrap_internal_err("querying database for `report_create`")?;
|
.wrap_internal_err("querying database for `report_create`")?;
|
||||||
|
|
||||||
if !result.exists.unwrap_or(false) {
|
if !result.exists.unwrap_or(false) {
|
||||||
return Err(ApiError::Request(eyre::eyre!(format!(
|
return Err(ApiError::Request(eyre::eyre!(
|
||||||
"Organization could not be found: {}",
|
"Organization could not be found: {}",
|
||||||
new_report.item_id
|
new_report.item_id
|
||||||
))));
|
)));
|
||||||
}
|
}
|
||||||
|
|
||||||
report.organization_id = Some(organization_id.into())
|
report.organization_id = Some(organization_id.into())
|
||||||
|
|||||||
Reference in New Issue
Block a user