Remove data and hash from listing response and remove buyable thing

This commit is contained in:
2026-02-02 17:55:36 -07:00
parent 9ce2d8e6ab
commit 48060397f4
3 changed files with 0 additions and 16 deletions

View File

@@ -20,10 +20,7 @@ export async function handler (context: Context) {
.select({ .select({
id: berryDashMarketplaceIcons.id, id: berryDashMarketplaceIcons.id,
userId: berryDashMarketplaceIcons.userId, userId: berryDashMarketplaceIcons.userId,
data: berryDashMarketplaceIcons.data,
hash: berryDashMarketplaceIcons.hash,
timestamp: berryDashMarketplaceIcons.timestamp, timestamp: berryDashMarketplaceIcons.timestamp,
state: berryDashMarketplaceIcons.state,
price: berryDashMarketplaceIcons.price, price: berryDashMarketplaceIcons.price,
name: berryDashMarketplaceIcons.name name: berryDashMarketplaceIcons.name
}) })
@@ -44,11 +41,8 @@ export async function handler (context: Context) {
const result = icons.map(i => ({ const result = icons.map(i => ({
username: usersMap[i.userId] ?? 'Unknown', username: usersMap[i.userId] ?? 'Unknown',
userId: i.userId, userId: i.userId,
data: i.data,
hash: i.hash,
id: i.id, id: i.id,
price: i.price, price: i.price,
buyable: i.state == 1,
name: atob(i.name) name: atob(i.name)
})) }))

View File

@@ -54,7 +54,6 @@ export async function handler (context: Context) {
data: berryDashMarketplaceIcons.data, data: berryDashMarketplaceIcons.data,
hash: berryDashMarketplaceIcons.hash, hash: berryDashMarketplaceIcons.hash,
timestamp: berryDashMarketplaceIcons.timestamp, timestamp: berryDashMarketplaceIcons.timestamp,
state: berryDashMarketplaceIcons.state,
price: berryDashMarketplaceIcons.price, price: berryDashMarketplaceIcons.price,
name: berryDashMarketplaceIcons.name name: berryDashMarketplaceIcons.name
}) })
@@ -103,7 +102,6 @@ export async function handler (context: Context) {
dataQuery && dataQuery.toLowerCase() == 'false' ? null : icon[0].hash, dataQuery && dataQuery.toLowerCase() == 'false' ? null : icon[0].hash,
id: icon[0].id, id: icon[0].id,
price: icon[0].price, price: icon[0].price,
buyable: icon[0].state == 1,
name: atob(icon[0].name) name: atob(icon[0].name)
} }
@@ -134,7 +132,6 @@ export async function handler (context: Context) {
hash: dataQuery && dataQuery.toLowerCase() == 'false' ? null : i.hash, hash: dataQuery && dataQuery.toLowerCase() == 'false' ? null : i.hash,
id: i.id, id: i.id,
price: i.price, price: i.price,
buyable: i.state == 1,
name: atob(i.name) name: atob(i.name)
})) }))

View File

@@ -131,10 +131,6 @@ export async function handler (context: Context) {
.select({ .select({
id: berryDashMarketplaceIcons.id, id: berryDashMarketplaceIcons.id,
userId: berryDashMarketplaceIcons.userId, userId: berryDashMarketplaceIcons.userId,
data: berryDashMarketplaceIcons.data,
hash: berryDashMarketplaceIcons.hash,
timestamp: berryDashMarketplaceIcons.timestamp,
state: berryDashMarketplaceIcons.state,
price: berryDashMarketplaceIcons.price, price: berryDashMarketplaceIcons.price,
name: berryDashMarketplaceIcons.name name: berryDashMarketplaceIcons.name
}) })
@@ -155,11 +151,8 @@ export async function handler (context: Context) {
const result = icons.map(i => ({ const result = icons.map(i => ({
username: usersMap[i.userId] ?? 'Unknown', username: usersMap[i.userId] ?? 'Unknown',
userId: i.userId, userId: i.userId,
data: i.data,
hash: i.hash,
id: i.id, id: i.id,
price: i.price, price: i.price,
buyable: i.state == 1,
name: atob(i.name) name: atob(i.name)
})) }))