mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -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
207 B
JavaScript
7 lines
207 B
JavaScript
import TableVisibilityModeSettings from '/models/tableVisibilityModeSettings';
|
|
|
|
Meteor.publish('tableVisibilityModeSettings', function() {
|
|
const ret = TableVisibilityModeSettings.find();
|
|
return ret;
|
|
});
|