Skip to content
This repository was archived by the owner on Jul 8, 2020. It is now read-only.

Commit 351ca02

Browse files
committed
Allow payments to be fetched with a pledge
1 parent ec036fb commit 351ca02

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: src/pledge/pledge.js

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ module.exports = function (bookshelf) {
3131
return this.belongsTo('Donor');
3232
},
3333

34+
payments: function () {
35+
return this.hasMany('Payment');
36+
},
37+
3438
toFirebase: function () {
3539
return {
3640
id: this.id,

0 commit comments

Comments
 (0)