fix tests

This commit is contained in:
Phillip Thelen
2024-04-26 13:44:51 +02:00
parent 99a7b90247
commit d6cabeedb4
7 changed files with 32 additions and 15 deletions

View File

@@ -7,7 +7,6 @@ import common from '../../common';
import { preenUserHistory } from './preening';
import { sleep } from './sleep';
import { revealMysteryItems } from './payments/subscriptions';
import cleanupPinnedItems from '../../common/script/libs/cleanupPinnedItems';
const CRON_SAFE_MODE = nconf.get('CRON_SAFE_MODE') === 'true';
const CRON_SEMI_SAFE_MODE = nconf.get('CRON_SEMI_SAFE_MODE') === 'true';
@@ -501,7 +500,7 @@ export async function cron (options = {}) {
}
if (user.pinnedItems && user.pinnedItems.length > 0) {
user.pinnedItems = cleanupPinnedItems(user);
user.pinnedItems = common.cleanupPinnedItems(user);
}
// Send notification for changes in HP and MP.