Skip to content

Commit b6220e9

Browse files
authored
Move authing to last (OpenUserJS#1487)
Post OpenUserJS#1486 Auto-merge
1 parent 4995961 commit b6220e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/admin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ exports.adminSessionActiveView = function (aReq, aRes, aNext) {
437437
// Sort newest to oldest
438438
tasks.push(function (aCallback) {
439439
options.sessionList = _.sortBy(options.sessionList, function (aSession) {
440-
return -aSession.passport.oujsOptions.since;
440+
return -aSession.passport.oujsOptions.since || 0;
441441
});
442442

443443
aCallback();

0 commit comments

Comments
 (0)