Skip to content

Commit

Permalink
Merge pull request #273 from holaplex/espi/remove-collections-supply
Browse files Browse the repository at this point in the history
Remove Supply Increment on Queue Mint To Drop
  • Loading branch information
kespinola authored Oct 23, 2023
2 parents d4cc31f + ff134e7 commit f7fba9f
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 f7fba9f

Please sign in to comment.