From 8c7811d743e7463bfdc0956bfcfe3223fff0f0ba Mon Sep 17 00:00:00 2001 From: gc <30398469+gc@users.noreply.github.com> Date: Sat, 24 Feb 2024 17:22:03 +1100 Subject: [PATCH] fix --- tests/integration/migrateUser.test.ts | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/tests/integration/migrateUser.test.ts b/tests/integration/migrateUser.test.ts index 5dc4a79685..0cb2754def 100644 --- a/tests/integration/migrateUser.test.ts +++ b/tests/integration/migrateUser.test.ts @@ -149,16 +149,25 @@ class UserData { }); if (activities.length > 0) this.activities = activities; - const slayerTasks = await global.prisma!.slayerTask.findMany({ where: { user_id: this.id }, orderBy: { id: 'asc' } }); + const slayerTasks = await global.prisma!.slayerTask.findMany({ + where: { user_id: this.id }, + orderBy: { id: 'asc' } + }); if (slayerTasks.length > 0) this.slayerTasks = slayerTasks; const poh = await global.prisma!.playerOwnedHouse.findFirst({ where: { user_id: this.id } }); if (poh) this.poh = poh; - const giveaways = await global.prisma!.giveaway.findMany({ where: { user_id: this.id }, orderBy: { id: 'asc' } }); + const giveaways = await global.prisma!.giveaway.findMany({ + where: { user_id: this.id }, + orderBy: { id: 'asc' } + }); if (giveaways.length > 0) this.giveaways = giveaways; - const farmedCrops = await global.prisma!.farmedCrop.findMany({ where: { user_id: this.id }, orderBy: { id: 'asc' } }); + const farmedCrops = await global.prisma!.farmedCrop.findMany({ + where: { user_id: this.id }, + orderBy: { id: 'asc' } + }); if (farmedCrops.length > 0) this.farmedCrops = farmedCrops; const minigames = await global.prisma!.minigame.findFirst({ where: { user_id: this.id } }); @@ -920,7 +929,7 @@ const allTableCommands: TestCommand[] = [ const totalPrice = itemPrice * qty; bankToSell.add(item, qty); - const botItemSellData: global.prisma!.BotItemSellCreateManyInput[] = []; + const botItemSellData: Prisma.BotItemSellCreateManyInput[] = []; botItemSellData.push({ item_id: item.id, quantity: qty, @@ -1151,7 +1160,7 @@ async function buildBaseUser(userId: string) { .add('Berserker ring') .add('Ghrazi rapier'); - const userData: Partial = { + const userData: Partial = { id: userId, skills_runecraft: 13_034_431, skills_woodcutting: 13_034_431,