mirror of
https://github.com/wekan/wekan.git
synced 2026-11-26 20:45:07 -05:00
fileIntegrityScan.js asked cpuMonitor for currentCpuPercent, which it never exported, so cpuPercent() was always NaN: the hourly scan never skipped a busy hour and every finding recorded cpuPercent NaN. It reads getCurrentCpu().percent now. Five files imported names their modules do not export - UserAvatar, AttachmentStorage and Settings as a named import - none used; they are removed. tests/namedImportsExist.test.cjs checks every named import and destructured require of an app module against what that module exports. Thanks to xet7 !
7 lines
159 B
JavaScript
7 lines
159 B
JavaScript
import LockoutSettings from '/models/lockoutSettings';
|
|
|
|
Meteor.publish('lockoutSettings', function() {
|
|
const ret = LockoutSettings.find();
|
|
return ret;
|
|
});
|