mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-07-16 08:27:05 -05:00
also update alt skins builds to top 500 on player link
This commit is contained in:
parent
0a9998ad5d
commit
3d0379142e
|
|
@ -1,5 +1,6 @@
|
|||
import { ADMIN_DISCORD_ID } from "lib/constants";
|
||||
import { getMySession } from "lib/getMySession";
|
||||
import { getWeaponNormalized } from "lib/lists/weapons";
|
||||
import { NextApiRequest, NextApiResponse } from "next";
|
||||
import prisma from "prisma/client";
|
||||
|
||||
|
|
@ -35,7 +36,7 @@ const userHandler = async (req: NextApiRequest, res: NextApiResponse) => {
|
|||
}, new Set<string>());
|
||||
|
||||
const idsToUpdate = builds.reduce((acc: number[], build) => {
|
||||
if (top500weapons.has(build.weapon)) {
|
||||
if (top500weapons.has(getWeaponNormalized(build.weapon))) {
|
||||
acc.push(build.id);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user