Merge pull request #6 from Getable/fix-include

Fix: include option api correction
This commit is contained in:
Mahdi Dibaiee
2016-07-09 09:13:14 +04:30
committed by GitHub
2 changed files with 15 additions and 4 deletions

View File

@ -31,6 +31,8 @@ export const list = (server, model) => {
const include = parseInclude(request);
const where = parseWhere(request);
if (include instanceof Error) return void reply(include);
const list = await model.findAll({
where, include,
});