fix(crud): typo

This commit is contained in:
Mahdi Dibaiee
2016-03-12 11:05:04 +03:30
parent 5551d416a8
commit dc5a010408
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ export const destroy = (server, model) => {
async handler(request, reply) {
const include = parseInclude(request);
const where = parseWhere(request);
if (request.params.id) where.id = id;
if (request.params.id) where.id = request.params.id;
const list = await model.findAll({ where });