Skip to content

Commit

Permalink
Merge pull request #276 from holaplex/release
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
kespinola authored Oct 23, 2023
2 parents fd1a4bc + 3edbc09 commit 5387c26
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion api/src/mutations/mint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -875,10 +875,13 @@ impl Mutation {
ctx: &Context<'_>,
input: QueueMintToDropInput,
) -> Result<QueueMintToDropPayload> {
let AppContext { db, user_id, .. } = ctx.data::<AppContext>()?;
let AppContext {
db, user_id, redis, ..
} = ctx.data::<AppContext>()?;

let conn = db.get();

let mut redis_conn = redis.get_async_connection().await?;
let metadata_json_upload_job_queue = ctx.data::<JobQueue>()?;
let nfts_producer = ctx.data::<Producer<NftEvents>>()?;

Expand Down Expand Up @@ -943,6 +946,10 @@ impl Mutation {
})
.await?;

redis_conn
.del(format!("collection:{}:supply", drop.collection_id))
.await?;

nfts_producer
.send(
Some(&NftEvents {
Expand Down

0 comments on commit 5387c26

Please sign in to comment.