Skip to content

Commit 739d1c8

Browse files
committed
fix: oops
1 parent 3f975d8 commit 739d1c8

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
@@ -250,7 +250,7 @@ pub async fn update_mod(
250250
}
251251
let mut pool = data.db.acquire().await.or(Err(ApiError::DbAcquireError))?;
252252
let id = path.into_inner();
253-
let featured = mods::is_featured(&id, &mut pool)?;
253+
let featured = mods::is_featured(&id, &mut pool).await?;
254254
let mut transaction = pool.begin().await.or(Err(ApiError::TransactionError))?;
255255
if let Err(e) = Mod::update_mod(&id, payload.featured, &mut transaction).await {
256256
transaction

0 commit comments

Comments
 (0)