diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-06-06 01:04:51 -0400 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-06-06 01:04:51 -0400 |
| commit | 7040b8b2f7509bb1d79607469b2191ef9db8a05a (patch) | |
| tree | f4f02bb453c55079818623a05331782a4147a57d /client/src/lib/db/index.js | |
| parent | 5ea842ad2cac92d1dd5c90029cbeaa24d01c93ba (diff) | |
db
Diffstat (limited to 'client/src/lib/db/index.js')
| -rw-r--r-- | client/src/lib/db/index.js | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/client/src/lib/db/index.js b/client/src/lib/db/index.js index a60fa03..21e648d 100644 --- a/client/src/lib/db/index.js +++ b/client/src/lib/db/index.js @@ -14,19 +14,20 @@ function fetchDB(cb) { if (json) { raw_db = parse(json) } - return fetch(hosts.comments, { - method: 'GET', - }) - }).then(res => { - if (res.status !== 200) { - return null - } - return res.json() - }).then(json => { - if (json) { - raw_db.comments = json.reverse() - cb(raw_db) - } + cb(raw_db) +// return fetch(hosts.comments, { +// method: 'GET', +// }) +// }).then(res => { +// if (res.status !== 200) { +// return null +// } +// return res.json() +// }).then(json => { +// if (json) { +// raw_db.comments = json.reverse() +// cb(raw_db) +// } }).catch((err) => { console.warn(err) }) |
