Add "fetch" option to pledges list
Otherwise it doesn't actually fetch anything :/
This commit is contained in:
parent
bea9203b00
commit
577e10baaa
1 changed files with 1 additions and 0 deletions
|
@ -498,6 +498,7 @@ router.get('/pledges', async (req, res) => {
|
||||||
await Pledge
|
await Pledge
|
||||||
.forge()
|
.forge()
|
||||||
.orderBy('created_at', 'DESC')
|
.orderBy('created_at', 'DESC')
|
||||||
|
.fetchAll()
|
||||||
).models
|
).models
|
||||||
|
|
||||||
if (DEBUG) console.log(`Listing ${recentPledges.length} pledges`)
|
if (DEBUG) console.log(`Listing ${recentPledges.length} pledges`)
|
||||||
|
|
Loading…
Reference in a new issue