mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-16 10:19:10 +00:00
add husky and autolinting
This commit is contained in:
parent
e1bd5747b3
commit
d050277730
5 changed files with 56 additions and 7 deletions
|
@ -1,7 +1,6 @@
|
|||
// @flow
|
||||
import glob from 'glob'
|
||||
import type { Router, AppContext } from '../Roleypoly'
|
||||
import path from 'path'
|
||||
import logger from '../logger'
|
||||
const log = logger(__filename)
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
// @flow
|
||||
import logger from '../logger'
|
||||
import fnv from 'fnv-plus'
|
||||
import autoloader from './_autoloader'
|
||||
import RPCError from './_error'
|
||||
import type Roleypoly, { Router } from '../Roleypoly'
|
||||
import type { Context } from 'koa'
|
||||
const log = logger(__filename)
|
||||
// import logger from '../logger'
|
||||
// const log = logger(__filename)
|
||||
|
||||
export type RPCIncoming = {
|
||||
fn: string,
|
||||
|
|
|
@ -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($, () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue