Skip to content

Commit

Permalink
Merge pull request #235 from kodadot/main
Browse files Browse the repository at this point in the history
🔖 Stick fix
  • Loading branch information
vikiival authored Mar 12, 2024
2 parents c05f6b0 + 486b765 commit df53533
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/subsquid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
- name: install @subsquid/cli
run: npm install --location=global @subsquid/cli
- name: auth subsquid
Expand Down
10 changes: 8 additions & 2 deletions src/mappings/shared/token/tokenAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,14 @@ export class TokenAPI {

if (updatedCount === 0) {
debug(OPERATION, { deleteEmptyToken: `delete empty token ${token.id}` })

await emOf(this.store).delete(TE, token.id)
try {
await emOf(this.store).delete(TE, token.id)
} catch (error) {
debug(OPERATION, {
deleteEmptyToken: `Failed to delete token ${token.id}`,
error,
})
}
}
}

Expand Down
1 change: 1 addition & 0 deletions src/mappings/shared/token/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ export const tokenName = (nftName: string | undefined | null, collectionId: stri

return doNotAlter ? nftName : nftName.replace(/([#_]\d+$)/g, '')
}

0 comments on commit df53533

Please sign in to comment.