import { Action } from 'routing-controllers'; export async function currentUserChecker(model) { return (action: Action): Promise => { return action.request.user; }; }