Skip to content

Commit 391cd44

Browse files
committed
fix: do not store mod image on mod creation at all
1 parent 3e93ddf commit 391cd44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/endpoints/mods.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ pub async fn create(
114114
let dev = auth.developer()?;
115115
let mut pool = data.db.acquire().await.or(Err(ApiError::DbAcquireError))?;
116116
let mut file_path = download_geode_file(&payload.download_link).await?;
117-
let json = ModJson::from_zip(&mut file_path, &payload.download_link, dev.verified)?;
117+
let json = ModJson::from_zip(&mut file_path, &payload.download_link, false)?;
118118
json.validate()?;
119119
let mut transaction = pool.begin().await.or(Err(ApiError::TransactionError))?;
120120
let result = Mod::from_json(&json, dev.clone(), &mut transaction).await;

0 commit comments

Comments
 (0)