From 3b4320c569dbf962af8a35ca0f16519a1de128db Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Fri, 9 Feb 2018 16:17:35 +0000 Subject: minor fixes --- src/FileRouter.ts | 2 +- src/matcher/options.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/FileRouter.ts b/src/FileRouter.ts index bffc454..423c1a7 100644 --- a/src/FileRouter.ts +++ b/src/FileRouter.ts @@ -330,7 +330,7 @@ export class FileRouter { include: [ User ] - ).then((projects) => { + }).then((projects) => { res.json(projects.map( (p: Project) => p.getProjectFullInfo() )); diff --git a/src/matcher/options.ts b/src/matcher/options.ts index c1d1aeb..9b07163 100644 --- a/src/matcher/options.ts +++ b/src/matcher/options.ts @@ -77,10 +77,10 @@ export function array(template: Object, values?: Array) { } const options = { - match = match, - exact = exact, - optional = optional, - alternative = alternative, - array = array + match : match, + exact : exact, + optional : optional, + alternative : alternative, + array : array }; export default options; -- cgit v1.2.1