From ff134e7c17fdf6dcab669996b9d3f4736d70e399 Mon Sep 17 00:00:00 2001 From: Kyle Espinola Date: Mon, 23 Oct 2023 14:22:01 +0200 Subject: [PATCH] fix: don't increment supply on queued to mint because done on the fly and cached --- api/src/mutations/mint.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/api/src/mutations/mint.rs b/api/src/mutations/mint.rs index 4c372be..fe2ea69 100644 --- a/api/src/mutations/mint.rs +++ b/api/src/mutations/mint.rs @@ -899,15 +899,6 @@ impl Mutation { let tx: sea_orm::DatabaseTransaction = conn.begin().await?; - collections::Entity::update_many() - .col_expr( - collections::Column::Supply, - Expr::value(Expr::col(collections::Column::Supply).add(Value::Int(Some(1)))), - ) - .filter(collections::Column::Id.eq(collection_model.id)) - .exec(&tx) - .await?; - let mint = collection_mints::ActiveModel { collection_id: Set(drop.collection_id), owner: Set(None),