chore: binds prefs model even if not local

This commit is contained in:
James
2022-12-05 10:24:31 -05:00
parent b70dc83d0e
commit b6ec4bd2d4
3 changed files with 5 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ import httpStatus from 'http-status';
import { PayloadRequest } from '../../express/types';
import login, { Result } from '../operations/login';
export default async function loginHandler(req: PayloadRequest, res: Response, next: NextFunction): Promise<Response<Result & { message: string}> | void> {
export default async function loginHandler(req: PayloadRequest, res: Response, next: NextFunction): Promise<Response<Result & { message: string }> | void> {
try {
const result = await login({
req,