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

@ -1,6 +1,6 @@
{
"name": "hapi-sequelize-crud",
"version": "2.0.2",
"version": "2.0.3",
"description": "Hapi plugin that automatically generates RESTful API for CRUD",
"main": "build/index.js",
"config": {

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 });