More fixes and add hash back
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user