Skip to content

Commit

Permalink
Merge pull request #232 from kodadot/main
Browse files Browse the repository at this point in the history
⚠️ Unstucking stick v10
  • Loading branch information
vikiival authored Mar 4, 2024
2 parents d432c30 + f82c069 commit c05f6b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mappings/shared/token/tokenAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ export class TokenAPI {
debug(OPERATION, { removeNftFromToken: `Unlink NFT ${nft.id} from TOKEN ${token.id}` })

await emOf(this.store).update(NE, nft.id, { token: null })
const updatedCount = token.count - 1
const updatedCount = await emOf(this.store).countBy(NE, {
token: {
id: token.id,
},
})
await emOf(this.store).update(TE, token.id, {
supply: token.supply - 1,
count: updatedCount,
Expand Down

0 comments on commit c05f6b0

Please sign in to comment.