Skip to content

Commit

Permalink
more work on linting
Browse files Browse the repository at this point in the history
  • Loading branch information
CuriousMagpie committed Mar 25, 2024
1 parent 76f38b7 commit 6075d73
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion migrations/users/habit_birthday.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 1 addition & 2 deletions migrations/users/nye.js
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -8,7 +7,7 @@ const progressCount = 1000;
let count = 0;

async function updateUser (user) {
count++;
count += 1;

const set = { migration: MIGRATION_NAME };
const push = {};
Expand Down
4 changes: 2 additions & 2 deletions migrations/users/pet_group_achievements.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion migrations/users/summer_splash_orcas.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const progressCount = 1000;
let count = 0;

async function updateUser (user) {
count++;
count += 1;

const set = { migration: MIGRATION_NAME };
const push = {};
Expand Down
2 changes: 1 addition & 1 deletion migrations/users/veteran_pet_ladder.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const progressCount = 1000;
let count = 0;

async function updateUser (user) {
count++;
count += 1;

const set = {};
const push = { notifications: { $each: [] } };
Expand Down

0 comments on commit 6075d73

Please sign in to comment.