Migrate to tslint 5.1.0
This commit is contained in:
parent
798d1610f0
commit
b095efaee5
16 changed files with 107 additions and 95 deletions
|
|
@ -22,7 +22,7 @@ module.exports = async (app: express.Application) => {
|
|||
const handler = new EventEmitter();
|
||||
|
||||
app.post('/hooks/github', (req, res, next) => {
|
||||
if ((new Buffer(req.headers['x-hub-signature'])).equals(new Buffer('sha1=' + crypto.createHmac('sha1', config.github_bot.hook_secret).update(JSON.stringify(req.body)).digest('hex')))) {
|
||||
if ((new Buffer(req.headers['x-hub-signature'])).equals(new Buffer(`sha1=${crypto.createHmac('sha1', config.github_bot.hook_secret).update(JSON.stringify(req.body)).digest('hex')}`))) {
|
||||
handler.emit(req.headers['x-github-event'], req.body);
|
||||
res.sendStatus(200);
|
||||
} else {
|
||||
|
|
@ -40,7 +40,7 @@ module.exports = async (app: express.Application) => {
|
|||
|
||||
// Fetch parent status
|
||||
request({
|
||||
url: parent.url + '/statuses',
|
||||
url: `${parent.url}/statuses`,
|
||||
headers: {
|
||||
'User-Agent': 'misskey'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue