diff --git a/core/src/listener/api.ts b/core/src/listener/api.ts index a021b1404..0c4558580 100644 --- a/core/src/listener/api.ts +++ b/core/src/listener/api.ts @@ -102,7 +102,7 @@ export async function insertUnprocessedBlocks({ blocks: number[] }): Promise { 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) @@ -144,7 +144,7 @@ export async function upsertObservedBlock({ blockNumber: number }): Promise { 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)