fix(crud): typo
This commit is contained in:
@ -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 });
|
||||
|
||||
|
Reference in New Issue
Block a user