add husky and autolinting

This commit is contained in:
41666 2019-04-03 07:26:00 -05:00
parent e1bd5747b3
commit d050277730
No known key found for this signature in database
GPG key ID: BC51D07640DC10AF
5 changed files with 56 additions and 7 deletions

View file

@ -6,7 +6,7 @@ import * as secureAs from './_security'
export default ($: AppContext) => ({
getCurrentUser: secureAs.authed($, async (ctx: Context) => {
return await $.discord.getUserPartial(ctx.session.userId)
return $.discord.getUserPartial(ctx.session.userId)
}),
isRoot: secureAs.root($, () => {