From 6075d7384fd7a9c09beaefd45430a306e9a0bfe0 Mon Sep 17 00:00:00 2001 From: CuriousMagpie Date: Mon, 25 Mar 2024 16:15:52 -0400 Subject: [PATCH] more work on linting --- migrations/users/habit_birthday.js | 1 - migrations/users/nye.js | 3 +-- migrations/users/pet_group_achievements.js | 4 ++-- migrations/users/summer_splash_orcas.js | 2 +- migrations/users/veteran_pet_ladder.js | 2 +- 5 files changed, 5 insertions(+), 7 deletions(-) diff --git a/migrations/users/habit_birthday.js b/migrations/users/habit_birthday.js index 5072bd0df8b..8c8f70320c1 100644 --- a/migrations/users/habit_birthday.js +++ b/migrations/users/habit_birthday.js @@ -1,5 +1,4 @@ /* eslint-disable no-console */ -import { v4 as uuid } from 'uuid'; import { model as User } from '../../website/server/models/user'; const MIGRATION_NAME = '20240131_habit_birthday'; diff --git a/migrations/users/nye.js b/migrations/users/nye.js index cf11f9e2056..49ca737650c 100644 --- a/migrations/users/nye.js +++ b/migrations/users/nye.js @@ -1,5 +1,4 @@ /* eslint-disable no-console */ -import { v4 as uuid } from 'uuid'; import { model as User } from '../../website/server/models/user'; const MIGRATION_NAME = '20231228_nye'; @@ -8,7 +7,7 @@ const progressCount = 1000; let count = 0; async function updateUser (user) { - count++; + count += 1; const set = { migration: MIGRATION_NAME }; const push = {}; diff --git a/migrations/users/pet_group_achievements.js b/migrations/users/pet_group_achievements.js index 2360392a2b1..b48dc655d83 100644 --- a/migrations/users/pet_group_achievements.js +++ b/migrations/users/pet_group_achievements.js @@ -7,14 +7,14 @@ const progressCount = 1000; let count = 0; async function updateUser (user) { - count++; + count += 1; const set = { migration: MIGRATION_NAME, }; if (user && user.items && user.items.pets) { - const pets = user.items.pets; + const { pets } = user.items; if (pets['GuineaPig-Zombie'] > 0 && pets['GuineaPig-Skeleton'] > 0 && pets['GuineaPig-Base'] > 0 diff --git a/migrations/users/summer_splash_orcas.js b/migrations/users/summer_splash_orcas.js index 9341994b713..6c17bab2abc 100644 --- a/migrations/users/summer_splash_orcas.js +++ b/migrations/users/summer_splash_orcas.js @@ -7,7 +7,7 @@ const progressCount = 1000; let count = 0; async function updateUser (user) { - count++; + count += 1; const set = { migration: MIGRATION_NAME }; const push = {}; diff --git a/migrations/users/veteran_pet_ladder.js b/migrations/users/veteran_pet_ladder.js index 086842a45f9..262bcbb9737 100644 --- a/migrations/users/veteran_pet_ladder.js +++ b/migrations/users/veteran_pet_ladder.js @@ -7,7 +7,7 @@ const progressCount = 1000; let count = 0; async function updateUser (user) { - count++; + count += 1; const set = {}; const push = { notifications: { $each: [] } };