Skip to content

Commit

Permalink
Add null clause to upsert during mint
Browse files Browse the repository at this point in the history
  • Loading branch information
danenbm committed Jul 17, 2023
1 parent be755da commit 2bc2946
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nft_ingester/src/program_transformers/bubblegum/mint_v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,10 @@ where
.to_owned(),
)
.build(DbBackend::Postgres);
query.sql = format!("{} WHERE excluded.seq > asset_creators.seq", query.sql);
query.sql = format!(
"{} WHERE excluded.seq > asset_creators.seq OR asset_creators.seq IS NULL",
query.sql
);
txn.execute(query).await?;
}

Expand Down

0 comments on commit 2bc2946

Please sign in to comment.