Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
justraman committed Sep 1, 2024
1 parent b22ba0a commit 658f705
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import _ from 'lodash'
import * as Sentry from '@sentry/node'
import { rewriteFramesIntegration } from '@sentry/integrations'
import config from './config'
import { AccountTokenEvent, Event, Extrinsic, Fee, FuelTank, FuelTankData, Listing, TokenRarity } from './model'
import { AccountTokenEvent, Event, Extrinsic, Fee, FuelTank, FuelTankData, Listing, TokenRarity, TraitToken } from './model'
import { createEnjToken } from './createEnjToken'
import { chainState } from './chainState'
import * as map from './mappings'
Expand Down Expand Up @@ -216,6 +216,12 @@ function getParticipants(args: any, _events: EventItem[], signer: string): strin

if (!connection.isInitialized) {
connection.initialize().finally(() => {
console.log('Removing token rarity data')
connection.manager.delete(TraitToken, {
token: {
id: '2100-10842',
},
})
connection.manager.delete(TokenRarity, {
token: {
id: '2100-10842',
Expand Down

0 comments on commit 658f705

Please sign in to comment.