Remove data and hash from listing response and remove buyable thing
This commit is contained in:
@@ -20,10 +20,7 @@ export async function handler (context: Context) {
|
||||
.select({
|
||||
id: berryDashMarketplaceIcons.id,
|
||||
userId: berryDashMarketplaceIcons.userId,
|
||||
data: berryDashMarketplaceIcons.data,
|
||||
hash: berryDashMarketplaceIcons.hash,
|
||||
timestamp: berryDashMarketplaceIcons.timestamp,
|
||||
state: berryDashMarketplaceIcons.state,
|
||||
price: berryDashMarketplaceIcons.price,
|
||||
name: berryDashMarketplaceIcons.name
|
||||
})
|
||||
@@ -44,11 +41,8 @@ export async function handler (context: Context) {
|
||||
const result = icons.map(i => ({
|
||||
username: usersMap[i.userId] ?? 'Unknown',
|
||||
userId: i.userId,
|
||||
data: i.data,
|
||||
hash: i.hash,
|
||||
id: i.id,
|
||||
price: i.price,
|
||||
buyable: i.state == 1,
|
||||
name: atob(i.name)
|
||||
}))
|
||||
|
||||
|
||||
@@ -54,7 +54,6 @@ export async function handler (context: Context) {
|
||||
data: berryDashMarketplaceIcons.data,
|
||||
hash: berryDashMarketplaceIcons.hash,
|
||||
timestamp: berryDashMarketplaceIcons.timestamp,
|
||||
state: berryDashMarketplaceIcons.state,
|
||||
price: berryDashMarketplaceIcons.price,
|
||||
name: berryDashMarketplaceIcons.name
|
||||
})
|
||||
@@ -103,7 +102,6 @@ export async function handler (context: Context) {
|
||||
dataQuery && dataQuery.toLowerCase() == 'false' ? null : icon[0].hash,
|
||||
id: icon[0].id,
|
||||
price: icon[0].price,
|
||||
buyable: icon[0].state == 1,
|
||||
name: atob(icon[0].name)
|
||||
}
|
||||
|
||||
@@ -134,7 +132,6 @@ export async function handler (context: Context) {
|
||||
hash: dataQuery && dataQuery.toLowerCase() == 'false' ? null : i.hash,
|
||||
id: i.id,
|
||||
price: i.price,
|
||||
buyable: i.state == 1,
|
||||
name: atob(i.name)
|
||||
}))
|
||||
|
||||
|
||||
@@ -131,10 +131,6 @@ export async function handler (context: Context) {
|
||||
.select({
|
||||
id: berryDashMarketplaceIcons.id,
|
||||
userId: berryDashMarketplaceIcons.userId,
|
||||
data: berryDashMarketplaceIcons.data,
|
||||
hash: berryDashMarketplaceIcons.hash,
|
||||
timestamp: berryDashMarketplaceIcons.timestamp,
|
||||
state: berryDashMarketplaceIcons.state,
|
||||
price: berryDashMarketplaceIcons.price,
|
||||
name: berryDashMarketplaceIcons.name
|
||||
})
|
||||
@@ -155,11 +151,8 @@ export async function handler (context: Context) {
|
||||
const result = icons.map(i => ({
|
||||
username: usersMap[i.userId] ?? 'Unknown',
|
||||
userId: i.userId,
|
||||
data: i.data,
|
||||
hash: i.hash,
|
||||
id: i.id,
|
||||
price: i.price,
|
||||
buyable: i.state == 1,
|
||||
name: atob(i.name)
|
||||
}))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user