From ab4fc30e47271284663479c6ad3c63e7cde594d6 Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Sat, 24 Jan 2026 18:15:26 -0700 Subject: [PATCH] More fixes and add hash back --- src/routes/berrydash/icon-marketplace/get.ts | 1 + src/routes/berrydash/icon-marketplace/icon/get.ts | 9 ++++----- src/routes/berrydash/icon-marketplace/post.ts | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/routes/berrydash/icon-marketplace/get.ts b/src/routes/berrydash/icon-marketplace/get.ts index 1bc6c3c..2c2fb18 100644 --- a/src/routes/berrydash/icon-marketplace/get.ts +++ b/src/routes/berrydash/icon-marketplace/get.ts @@ -45,6 +45,7 @@ export async function handler (context: Context) { username: usersMap[i.userId] ?? 'Unknown', userId: i.userId, data: i.data, + hash: i.hash, id: i.id, price: i.price, buyable: i.state == 1, diff --git a/src/routes/berrydash/icon-marketplace/icon/get.ts b/src/routes/berrydash/icon-marketplace/icon/get.ts index 7bd51aa..1a3395a 100644 --- a/src/routes/berrydash/icon-marketplace/icon/get.ts +++ b/src/routes/berrydash/icon-marketplace/icon/get.ts @@ -98,11 +98,9 @@ export async function handler (context: Context) { username: userData[0].username, userId: icon[0].userId, data: - dataQuery && dataQuery.toLowerCase() == 'false' - ? null - : dataQuery && dataQuery.toLowerCase() == 'false' - ? null - : icon[0].data, + dataQuery && dataQuery.toLowerCase() == 'false' ? null : icon[0].data, + hash: + dataQuery && dataQuery.toLowerCase() == 'false' ? null : icon[0].hash, id: icon[0].id, price: icon[0].price, buyable: icon[0].state == 1, @@ -133,6 +131,7 @@ export async function handler (context: Context) { username: usersMap[i.userId] ?? 'Unknown', userId: i.userId, data: dataQuery && dataQuery.toLowerCase() == 'false' ? null : i.data, + hash: dataQuery && dataQuery.toLowerCase() == 'false' ? null : i.hash, id: i.id, price: i.price, buyable: i.state == 1, diff --git a/src/routes/berrydash/icon-marketplace/post.ts b/src/routes/berrydash/icon-marketplace/post.ts index 494b9e1..bcd09fe 100644 --- a/src/routes/berrydash/icon-marketplace/post.ts +++ b/src/routes/berrydash/icon-marketplace/post.ts @@ -157,6 +157,7 @@ export async function handler (context: Context) { username: usersMap[i.userId] ?? 'Unknown', userId: i.userId, data: i.data, + hash: i.hash, id: i.id, price: i.price, buyable: i.state == 1,