mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Fixed missing return statement in shared validators
refs #9866 - if the fn returns a Promise, it won't be returned
This commit is contained in:
parent
551f14d9ec
commit
5d3b026cd9
1 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ module.exports = {
|
|||
|
||||
read() {
|
||||
debug('validate read');
|
||||
this.browse(...arguments);
|
||||
return this.browse(...arguments);
|
||||
},
|
||||
|
||||
add(apiConfig, frame) {
|
||||
|
@ -129,6 +129,6 @@ module.exports = {
|
|||
|
||||
edit() {
|
||||
debug('validate edit');
|
||||
this.add(...arguments);
|
||||
return this.add(...arguments);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue