Skip to content

Commit

Permalink
fix: don't increment supply on queued to mint because done on the fly…
Browse files Browse the repository at this point in the history
… and cached
  • Loading branch information
kespinola committed Oct 23, 2023
1 parent d4cc31f commit ff134e7
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions api/src/mutations/mint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit ff134e7

Please sign in to comment.