Skip to content

Commit

Permalink
fix: ignore token insert conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
pradel committed May 19, 2024
1 parent d8f2188 commit d80f2aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const getOrInsertToken = async (tokenId: string) => {
symbol: cvToValue(resultSymbol).value,
decimals: Number(cvToValue(resultDecimals).value),
};
await db.insert(tokenTable).values(token);
await db.insert(tokenTable).values(token).onConflictDoNothing();
}
return token;
};

0 comments on commit d80f2aa

Please sign in to comment.