From 391cd4498de6848e6f841d3194c70750cec6a873 Mon Sep 17 00:00:00 2001 From: Fleeym <61891787+Fleeym@users.noreply.github.com> Date: Mon, 6 Jan 2025 18:00:15 +0200 Subject: [PATCH] fix: do not store mod image on mod creation at all --- src/endpoints/mods.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/endpoints/mods.rs b/src/endpoints/mods.rs index 54295e1..b8616aa 100644 --- a/src/endpoints/mods.rs +++ b/src/endpoints/mods.rs @@ -114,7 +114,7 @@ pub async fn create( let dev = auth.developer()?; let mut pool = data.db.acquire().await.or(Err(ApiError::DbAcquireError))?; let mut file_path = download_geode_file(&payload.download_link).await?; - let json = ModJson::from_zip(&mut file_path, &payload.download_link, dev.verified)?; + let json = ModJson::from_zip(&mut file_path, &payload.download_link, false)?; json.validate()?; let mut transaction = pool.begin().await.or(Err(ApiError::TransactionError))?; let result = Mod::from_json(&json, dev.clone(), &mut transaction).await;