Skip to content

Commit

Permalink
use older version of bun...
Browse files Browse the repository at this point in the history
  • Loading branch information
ezynda3 committed Sep 18, 2024
1 parent 7dc942d commit c88db47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM oven/bun:1.1-slim
FROM oven/bun:1.0-slim

WORKDIR /app
COPY package.json package.json
Expand Down
7 changes: 5 additions & 2 deletions src/routes/diamond/[address]/json/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' })
Expand Down

0 comments on commit c88db47

Please # to comment.