Skip to content

Commit

Permalink
Fix code style issues with Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
lint-action committed Jun 2, 2022
1 parent 5c78503 commit bb54087
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bin/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ const app = new cdk.App()

// Local dev stack
new RoutingAPIStack(app, 'RoutingAPIStack', {
providerName : process.env.PROVIDER_NAME!,
providerName: process.env.PROVIDER_NAME!,
projectId: process.env.PROJECT_ID!,
provisionedConcurrency: process.env.PROVISION_CONCURRENCY ? parseInt(process.env.PROVISION_CONCURRENCY) : 0,
throttlingOverride: process.env.THROTTLE_PER_FIVE_MINS,
Expand Down
16 changes: 8 additions & 8 deletions lib/handlers/injector-sor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,17 @@ export abstract class InjectorSOR<Router, QueryParams> extends Injector<
const chainName = ID_TO_NETWORK_NAME(chainId)
const providerName = process.env.PROVIDER_NAME
const projectId = process.env.PROJECT_ID
let url = "";
switch(providerName) {
case('infura'):
let url = ''
switch (providerName) {
case 'infura':
url = `https://${chainName}.infura.io/v3/${projectId}`
break
case('alchemy'):
// todo: add logic to generate alchemy rpc urls
case('moralis'):
// todo: todo: add logic to generate moralis rpc urls
case 'alchemy':
// todo: add logic to generate alchemy rpc urls
case 'moralis':
// todo: todo: add logic to generate moralis rpc urls
default:
throw Error("Fatal: Unknown Provider Not Supported")
throw Error('Fatal: Unknown Provider Not Supported')
}

let timeout: number
Expand Down

0 comments on commit bb54087

Please sign in to comment.