bugfixes camel case

This commit is contained in:
Christian Landgren 2020-12-06 01:09:24 +01:00
parent dd2780f858
commit 0155bc929c
2 changed files with 1284 additions and 2 deletions

View File

@ -50,8 +50,8 @@ const loginStatus = (order) => fetch(urls.checkStatus(order))
const getChildren = () => fetchJson(urls.children)
const getNews = childId => fetchJson(urls.news(childId))
.then(news => news.NewsItems.map(({body,preamble: intro, header, bannerImageUrl: imageUrl, pubDateSE: published, modDateSE: modified}) =>
({header, intro, body: h2m(body), modified, published, image: urls.image(imageUrl) })))
.then(news => news.newsItems.map(({body, preamble: intro, header, bannerImageUrl: imageUrl, pubDateSE: published, modDateSE: modified}) =>
({header, intro, body: h2m(body), modified, published, imageUrl: urls.image(imageUrl) })))
.catch(err => ({err}))
const getCalendar = childId => fetchJson(urls.calendar(childId)).catch(err => ({err}))

1282
packages/api/output.json Normal file

File diff suppressed because it is too large Load Diff