Add missing returns for the deprecated methods

This commit is contained in:
fsmanuel 2019-04-24 21:55:10 +02:00
parent f06b21dfee
commit 1199b053fe
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ class Contribution extends Record {
addContribution () {
deprecate('The method: `addContribution` is deprecated use `add` instead');
this.add(...arguments);
return this.add(...arguments);
}
}

View File

@ -39,7 +39,7 @@ class Proposal extends Record {
addProposal () {
deprecate('The method: `addProposal` is deprecated use `add` instead');
this.add(...arguments);
return this.add(...arguments);
}
}