chore(migration): set up for Naming Day 2024

This commit is contained in:
Sabe Jones 2024-07-30 15:12:56 -05:00
parent 882fad3113
commit 3f3e2525d2
2 changed files with 4 additions and 6 deletions

@ -1 +1 @@
Subproject commit 617a3d6e6cd870172690a22b4dd16327f5e9d997
Subproject commit 98e9a400b840ee8673a636f3e3d3f19b560783a5

View file

@ -1,8 +1,6 @@
/* eslint-disable no-console */
const MIGRATION_NAME = '20230731_naming_day';
import { v4 as uuid } from 'uuid';
import { model as User } from '../../../website/server/models/user';
const MIGRATION_NAME = '20240731_naming_day';
import { model as User } from '../../website/server/models/user';
const progressCount = 1000;
let count = 0;
@ -124,7 +122,7 @@ async function updateUser (user) {
export default async function processUsers () {
let query = {
migration: { $ne: MIGRATION_NAME },
'auth.timestamps.loggedin': { $gt: new Date('2023-07-01') },
'auth.timestamps.loggedin': { $gt: new Date('2024-07-01') },
};
const fields = {