Skip to content

Commit

Permalink
Revert "fix"
Browse files Browse the repository at this point in the history
This reverts commit 4c2d701.
  • Loading branch information
0xngmi committed Jul 4, 2023
1 parent 4c2d701 commit e5627a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/flipsidecrypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export async function queryFlipside(sqlQuery: string) {
throw query?.data.error.message
}
} catch(e:any){
if(e?.response?.statusText === 'Payment Required' || (e?.startsWith && e?.startsWith('RpcMaxConcurrentQueries'))){
if(e?.response?.statusText === 'Payment Required'){
if(API_KEY_INDEX < (FLIPSIDE_API_KEYS.length-1)){
const nextIndex = FLIPSIDE_API_KEYS.findIndex(k=>k===FLIPSIDE_API_KEY) + 1
if(API_KEY_INDEX < nextIndex){
Expand Down

0 comments on commit e5627a7

Please sign in to comment.