aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/FileRouter.ts5
-rw-r--r--test/integration/protocol.routes.test.ts2
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'