From 22efa1b090df7a427bfc1990d705624ae53d6231 Mon Sep 17 00:00:00 2001 From: Hafeez Date: Thu, 12 Apr 2018 15:30:34 +0100 Subject: not much progress tbh --- src/FileRouter.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/FileRouter.ts') diff --git a/src/FileRouter.ts b/src/FileRouter.ts index f01e1a0..d6d49da 100644 --- a/src/FileRouter.ts +++ b/src/FileRouter.ts @@ -419,6 +419,7 @@ const getProjectName: Middleware = console.log("was null") return next(new RequestError(404, 'project_not_found')); } else { + console.log(project.contributors); res.locals.data = project.fullInfo; console.log("wasnt " + res.locals.data) next(); @@ -568,13 +569,13 @@ export class FileRouter { async( req: Request, res: Response, next: NextFunction, project: string - ): Promise => { - console.log("## as " + project) + ): Promise => { res.locals.project = await Project.findOne({ where: { name: project } }); + console.log("## as " + res.locals.project); next(); } ); -- cgit v1.2.1