diff --git a/Dockerfile b/Dockerfile index 4eb4996..2472da6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM oven/bun:1.1-slim +FROM oven/bun:1.0-slim WORKDIR /app COPY package.json package.json diff --git a/src/routes/diamond/[address]/json/+server.ts b/src/routes/diamond/[address]/json/+server.ts index 8dc4b22..3c5f7ca 100644 --- a/src/routes/diamond/[address]/json/+server.ts +++ b/src/routes/diamond/[address]/json/+server.ts @@ -71,12 +71,15 @@ export const GET: RequestHandler = async ({ params, url, locals }) => { visits: sql`${diamonds.visits} + 1`, }, }) + consola.info('Stats updated.') - return json({ + const response = { chain: network, diamond, diamondAbi, - }) + } + + return json(response) } catch (e) { console.error(e) throw error(400, { message: 'Unable to fetch diamond details' })