mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
chore(migration): set up for Naming Day 2024
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
/* eslint-disable no-console */
|
/* eslint-disable no-console */
|
||||||
const MIGRATION_NAME = '20230731_naming_day';
|
const MIGRATION_NAME = '20240731_naming_day';
|
||||||
import { v4 as uuid } from 'uuid';
|
import { model as User } from '../../website/server/models/user';
|
||||||
|
|
||||||
import { model as User } from '../../../website/server/models/user';
|
|
||||||
|
|
||||||
const progressCount = 1000;
|
const progressCount = 1000;
|
||||||
let count = 0;
|
let count = 0;
|
||||||
@@ -124,7 +122,7 @@ async function updateUser (user) {
|
|||||||
export default async function processUsers () {
|
export default async function processUsers () {
|
||||||
let query = {
|
let query = {
|
||||||
migration: { $ne: MIGRATION_NAME },
|
migration: { $ne: MIGRATION_NAME },
|
||||||
'auth.timestamps.loggedin': { $gt: new Date('2023-07-01') },
|
'auth.timestamps.loggedin': { $gt: new Date('2024-07-01') },
|
||||||
};
|
};
|
||||||
|
|
||||||
const fields = {
|
const fields = {
|
||||||
Reference in New Issue
Block a user