Skip to content

Commit

Permalink
replace template literal with simple string
Browse files Browse the repository at this point in the history
  • Loading branch information
Intizar-T committed May 28, 2024
1 parent b9f8488 commit c9df4cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/listener/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export async function insertUnprocessedBlocks({
blocks: number[]
}): Promise<void> {
try {
const endpoint = buildUrl(ORAKL_NETWORK_API_URL, `blocks/unprocessed`)
const endpoint = buildUrl(ORAKL_NETWORK_API_URL, 'blocks/unprocessed')
await axios.post(endpoint, { service, blocks })
} catch (e) {
throw new OraklError(OraklErrorCode.FailedInsertUnprocessedBlock)
Expand Down Expand Up @@ -144,7 +144,7 @@ export async function upsertObservedBlock({
blockNumber: number
}): Promise<IBlock> {
try {
const endpoint = buildUrl(ORAKL_NETWORK_API_URL, `blocks/observed`)
const endpoint = buildUrl(ORAKL_NETWORK_API_URL, 'blocks/observed')
return (await axios.post(endpoint, { service, blockNumber }))?.data
} catch (e) {
throw new OraklError(OraklErrorCode.FailedUpsertObservedBlock)
Expand Down

0 comments on commit c9df4cb

Please sign in to comment.