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',
|
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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user