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:
parent
995788f5a2
commit
5caf924013
1 changed files with 1 additions and 1 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Reference in a new issue