Skip to content

Commit 9f5c924

Browse files
author
robot
committed
fix: fatal error
1 parent 8c2f9e7 commit 9f5c924

File tree

3 files changed

+4
-12627
lines changed

3 files changed

+4
-12627
lines changed

middleware/mockUserInfo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ module.exports = ({ whitelist = [] }) =>
55
}
66
ctx.session.user = {
77
// login: "lilyzhaoyilu",
8-
login: "zliu1413",
9-
// login: "shuo0314",
8+
// login: "zliu1413",
9+
login: "shuo0314",
1010
// login: "azl397985856",
1111
avatar_url: "https://avatars.githubusercontent.com/u/12479470?v=4",
1212
name: "lucifer",

routes/dailyProblem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { startTime } = require("../config/index");
99

1010
const A = [];
1111
for (const [login, solution] of Object.entries(mySolutions)) {
12-
console.log(login);
12+
if (!users[login]) continue;
1313
const { bio, name, noCheck, allCheck, avatar_url, card } = users[login];
1414
A.push({
1515
count: solution.filter(Boolean).length,

0 commit comments

Comments
 (0)