Skip to content

Commit

Permalink
Merge branch 'hotfix/v0.1.13'
Browse files Browse the repository at this point in the history
  • Loading branch information
kuyoonjo committed Sep 13, 2017
2 parents 0582199 + 0b9d571 commit 55fa0da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ycs/core",
"version": "0.1.12",
"version": "0.1.13",
"description": "Simple restful framework using node and typescript",
"license": "MIT",
"repository": "https://github.com/yc-server/core.git",
Expand Down
3 changes: 2 additions & 1 deletion src/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ export function Model(options: IModelOptions): IModel {
);
model['docSchema'] = new DocSchema(model);
model['routes'] = (prefix, ...paths) => {
const router = new Router(prefix).paths(...paths);
const router = new Router(prefix);
router.model = model as IModel;
router.paths(...paths);
return router;
};
return model as IModel;
Expand Down
1 change: 1 addition & 0 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"no-string-literal": false,
"no-unused-expression": false,
"object-literal-sort-keys": false,
"ordered-imports": false,
"prefer-conditional-expression": false,
"prefer-object-spread": false,
"variable-name": ["ban-keywords", "check-format", "allow-leading-underscore"]
Expand Down

0 comments on commit 55fa0da

Please sign in to comment.