From 535be379ff066972afd4969f2c5096bc1f55060e Mon Sep 17 00:00:00 2001 From: Nishant Arora Date: Wed, 24 Aug 2016 12:49:01 +0530 Subject: [PATCH] Changed fetch to fetchAll() in articles endpoint --- db/matterwiki.sqlite | Bin 5120 -> 5120 bytes index.js | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/db/matterwiki.sqlite b/db/matterwiki.sqlite index 730b851279ccf258c09fcf05bba1e86ca9d07d9f..76f5920824f7f886f0d53ca08f3a0746f67684aa 100644 GIT binary patch delta 151 zcmZqBXwaA-&1gMQ#+lK2W5P0awz~|>ubJ;|7Ua3e%*VsTEX$Z!RFavTlUmHQ`8BsB z3kMT(CIj;x=FH84EV0bNflO=+>bAzleyQaOju3?kMn3sPsksW71;wSgdJ3K(N+Aa% eWMp7yrfXoKYhjU1i5e(7;4GRJT9SLD_bZKL3WplIZ W3mF6k0Ry}M1H7{l1hNB@yc0xpUK4l# diff --git a/index.js b/index.js index 6c1521b..b0b4fc3 100644 --- a/index.js +++ b/index.js @@ -42,7 +42,7 @@ app.get('/articles',function(req,res){ the error key in the returning object is a boolen which is false if there is no error and true otherwise */ Articles.forge() - .fetch() + .fetchAll() .then(function (collection) { res.json({error: false, data: collection.toJSON()}); })