More fixes and add hash back

This commit is contained in:
2026-01-24 18:15:26 -07:00
parent 046e193a98
commit ab4fc30e47
3 changed files with 6 additions and 5 deletions

View File

@@ -45,6 +45,7 @@ export async function handler (context: Context) {
username: usersMap[i.userId] ?? 'Unknown', username: usersMap[i.userId] ?? 'Unknown',
userId: i.userId, userId: i.userId,
data: i.data, data: i.data,
hash: i.hash,
id: i.id, id: i.id,
price: i.price, price: i.price,
buyable: i.state == 1, buyable: i.state == 1,

View File

@@ -98,11 +98,9 @@ export async function handler (context: Context) {
username: userData[0].username, username: userData[0].username,
userId: icon[0].userId, userId: icon[0].userId,
data: data:
dataQuery && dataQuery.toLowerCase() == 'false' dataQuery && dataQuery.toLowerCase() == 'false' ? null : icon[0].data,
? null hash:
: dataQuery && dataQuery.toLowerCase() == 'false' dataQuery && dataQuery.toLowerCase() == 'false' ? null : icon[0].hash,
? null
: icon[0].data,
id: icon[0].id, id: icon[0].id,
price: icon[0].price, price: icon[0].price,
buyable: icon[0].state == 1, buyable: icon[0].state == 1,
@@ -133,6 +131,7 @@ export async function handler (context: Context) {
username: usersMap[i.userId] ?? 'Unknown', username: usersMap[i.userId] ?? 'Unknown',
userId: i.userId, userId: i.userId,
data: dataQuery && dataQuery.toLowerCase() == 'false' ? null : i.data, data: dataQuery && dataQuery.toLowerCase() == 'false' ? null : i.data,
hash: dataQuery && dataQuery.toLowerCase() == 'false' ? null : i.hash,
id: i.id, id: i.id,
price: i.price, price: i.price,
buyable: i.state == 1, buyable: i.state == 1,

View File

@@ -157,6 +157,7 @@ export async function handler (context: Context) {
username: usersMap[i.userId] ?? 'Unknown', username: usersMap[i.userId] ?? 'Unknown',
userId: i.userId, userId: i.userId,
data: i.data, data: i.data,
hash: i.hash,
id: i.id, id: i.id,
price: i.price, price: i.price,
buyable: i.state == 1, buyable: i.state == 1,