Skip to content

Commit

Permalink
removing quick fix GyroData table inserts
Browse files Browse the repository at this point in the history
  • Loading branch information
gmbronco committed Feb 1, 2024
1 parent 3b35eda commit 629ad9e
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions modules/pool/lib/pool-creator.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,22 +250,6 @@ export class PoolCreatorService {
})),
});

// TODO: It's just a quick fix. Remove after merging json column replacement for tables
if (pool.poolType!.includes('Gyro')) {
await prisma.prismaPoolGyroData.upsert({
where: { poolId_chain: { poolId: pool.id, chain: this.chain } },
create: {
id: pool.id,
poolId: pool.id,
chain: this.chain,
...(poolWithoutTokens.gyroData!.update || {}),
},
update: {
...(poolWithoutTokens.gyroData!.update || {}),
},
});
}

await prisma.prismaPool.update({
data: poolWithoutTokens,
where: {
Expand Down

0 comments on commit 629ad9e

Please sign in to comment.