aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHafeez2018-04-12 15:30:34 +0100
committerHafeez2018-04-12 15:30:34 +0100
commit22efa1b090df7a427bfc1990d705624ae53d6231 (patch)
tree41c6005d206e6bdfe91f07c162230f48d13850e0 /src
parentfixed precondition (diff)
downloadmedicine-22efa1b090df7a427bfc1990d705624ae53d6231.tar.gz
medicine-22efa1b090df7a427bfc1990d705624ae53d6231.zip

not much progress tbh

Diffstat (limited to 'src')
-rw-r--r--src/FileRouter.ts5
1 files changed, 3 insertions, 2 deletions
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<void> => {
- console.log("## as " + project)
+ ): Promise<void> => {
res.locals.project = await Project.findOne({
where: {
name: project
}
});
+ console.log("## as " + res.locals.project);
next();
}
);