From 577e10baaaac9557fb628a3381926e5cb83c8570 Mon Sep 17 00:00:00 2001 From: Hippo Date: Tue, 11 Jan 2022 14:23:51 +0530 Subject: [PATCH] Add "fetch" option to pledges list Otherwise it doesn't actually fetch anything :/ --- server/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/index.js b/server/index.js index c9bb909..03ff1a4 100644 --- a/server/index.js +++ b/server/index.js @@ -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`)