Skip to content

Commit 873e9b9

Browse files
committed
fix(mods): modify version download URL on create return
1 parent b8d3dd2 commit 873e9b9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/endpoints/mods.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,11 @@ pub async fn create(
212212
the_mod.versions.insert(0, version);
213213

214214
tx.commit().await.or(Err(ApiError::TransactionError))?;
215+
216+
for i in &mut the_mod.versions {
217+
i.modify_metadata(data.app_url(), false);
218+
}
219+
215220
Ok(HttpResponse::Created().json(ApiResponse {
216221
error: "".into(),
217222
payload: the_mod,

0 commit comments

Comments
 (0)