Skip to content

Commit

Permalink
fix: missing gyro data table
Browse files Browse the repository at this point in the history
  • Loading branch information
gmbronco committed Feb 1, 2024
1 parent c52ca85 commit 9fafe63
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions modules/pool/lib/pool-creator.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,22 @@ 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 9fafe63

Please sign in to comment.