Skip to content

Commit

Permalink
fix: do not store mod image on mod creation at all
Browse files Browse the repository at this point in the history
  • Loading branch information
Fleeym committed Jan 6, 2025
1 parent 3e93ddf commit 391cd44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/endpoints/mods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 391cd44

Please sign in to comment.