Remove data and hash from listing response and remove buyable thing
This commit is contained in:
@@ -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