0
Fork 0
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:
kirrg001 2018-10-12 18:34:57 +02:00
parent 551f14d9ec
commit 5d3b026cd9

View file

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