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
|
||||
.forge()
|
||||
.orderBy('created_at', 'DESC')
|
||||
.fetchAll()
|
||||
).models
|
||||
|
||||
if (DEBUG) console.log(`Listing ${recentPledges.length} pledges`)
|
||||
|
|
Loading…
Reference in a new issue