mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-06 12:47:13 +02:00
* Rework user.js and User object to ES6
* Update download stats for user when web download is completed
This commit is contained in:
parent
6406d32165
commit
058ff3f367
14 changed files with 569 additions and 516 deletions
|
@ -2,7 +2,7 @@
|
|||
'use strict';
|
||||
|
||||
const MenuModule = require('../core/menu_module.js').MenuModule;
|
||||
const getUserList = require('../core/user.js').getUserList;
|
||||
const User = require('../core/user.js');
|
||||
const ViewController = require('../core/view_controller.js').ViewController;
|
||||
const stringFormat = require('../core/string_format.js');
|
||||
|
||||
|
@ -64,7 +64,7 @@ exports.getModule = class UserListModule extends MenuModule {
|
|||
},
|
||||
function fetchUserList(callback) {
|
||||
// :TODO: Currently fetching all users - probably always OK, but this could be paged
|
||||
getUserList(USER_LIST_OPTS, function got(err, ul) {
|
||||
User.getUserList(USER_LIST_OPTS, function got(err, ul) {
|
||||
userList = ul;
|
||||
callback(err);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue