Skip to content
This repository was archived by the owner on Sep 27, 2021. It is now read-only.

Commit 6d77aa0

Browse files
committed
querys => query
1 parent e0ac0e3 commit 6d77aa0

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ router.post('/lock/:username/error', async ctx => {
247247
await redis.multi()
248248
.del(`lock:${ctx.params.username}`)
249249
.zadd('tracked', 'XX', Date.now(), ctx.params.username)
250-
.set(`user:${ctx.params.username}:error`, ctx.querys.message)
250+
.set(`user:${ctx.params.username}:error`, ctx.query.message)
251251
.exec();
252252

253253
ctx.set('Content-Type', 'application/json');

worker.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,15 @@ class UserError extends Error {
115115

116116
this.name = this.constructor.name;
117117
}
118-
};
118+
};
119+
120+
class RepoError extends Error {
121+
constructor(message) {
122+
super(message);
123+
124+
this.name = this.constructor.name;
125+
}
126+
}
119127

120128
async function cloneUser({ username, lastSynced }) {
121129
// get list of repositories from Github API

0 commit comments

Comments
 (0)