0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Fixed member delete method to use correct options

closes #11589

- `findOne` method in destroy method was usinng wrong options object (unlinke read method id comes from frame.options not frame.data) thus this was causing 404 errors
This commit is contained in:
Nazar Gargol 2020-02-11 16:35:18 +08:00
parent 995788f5a2
commit 5caf924013

View file

@ -223,7 +223,7 @@ const members = {
async query(frame) {
frame.options.require = true;
let member = await models.Member.findOne(frame.data, frame.options);
let member = await models.Member.findOne(frame.options);
if (!member) {
throw new common.errors.NotFoundError({