diff options
| author | Hafeez | 2018-04-12 15:30:34 +0100 |
|---|---|---|
| committer | Hafeez | 2018-04-12 15:30:34 +0100 |
| commit | 22efa1b090df7a427bfc1990d705624ae53d6231 (patch) | |
| tree | 41c6005d206e6bdfe91f07c162230f48d13850e0 | |
| parent | fixed precondition (diff) | |
| download | medicine-22efa1b090df7a427bfc1990d705624ae53d6231.tar.gz medicine-22efa1b090df7a427bfc1990d705624ae53d6231.zip | |
not much progress tbh
| -rw-r--r-- | src/FileRouter.ts | 5 | ||||
| -rw-r--r-- | test/integration/protocol.routes.test.ts | 2 |
2 files changed, 4 insertions, 3 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(); } ); diff --git a/test/integration/protocol.routes.test.ts b/test/integration/protocol.routes.test.ts index e23fd60..6a08278 100644 --- a/test/integration/protocol.routes.test.ts +++ b/test/integration/protocol.routes.test.ts @@ -240,7 +240,7 @@ describe('routes : protocol', () => { beforeEach(getToken); describe('Access all valid routes', () => { - forEach(completeProtocol).it( + forEach(completeProtocol).it.only( '%s %s should be json', (method: string, path: string, temp: Template, resCode: number) => { const request: ChaiHttp.Request = method === 'get' |
