From c88db474ab03baf4a5bc7e90dd8c85c9d10eb6c1 Mon Sep 17 00:00:00 2001 From: Ed Zynda Date: Wed, 18 Sep 2024 17:34:05 +0300 Subject: [PATCH] use older version of bun... --- Dockerfile | 2 +- src/routes/diamond/[address]/json/+server.ts | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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' })