mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-13 22:42:38 -05:00
remove weapon from getUsersByWeapon query
This commit is contained in:
parent
0689cc2c41
commit
9388c41f69
|
|
@ -11,7 +11,21 @@ const getBuildsByWeaponQuery = async (weapon: string) =>
|
|||
prisma.build.findMany({
|
||||
where: { weapon },
|
||||
orderBy: [{ top500: "desc" }, { jpn: "desc" }, { updatedAt: "desc" }],
|
||||
include: {
|
||||
select: {
|
||||
userId: true,
|
||||
abilityPoints: true,
|
||||
clothingAbilities: true,
|
||||
clothingGear: true,
|
||||
description: true,
|
||||
headAbilities: true,
|
||||
headGear: true,
|
||||
id: true,
|
||||
jpn: true,
|
||||
shoesAbilities: true,
|
||||
shoesGear: true,
|
||||
title: true,
|
||||
top500: true,
|
||||
updatedAt: true,
|
||||
user: {
|
||||
select: {
|
||||
username: true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user