diff --git a/rogue-thi-app/lib/backend/neuland-api.js b/rogue-thi-app/lib/backend/neuland-api.js index 2958aa1b..9e469f6f 100644 --- a/rogue-thi-app/lib/backend/neuland-api.js +++ b/rogue-thi-app/lib/backend/neuland-api.js @@ -18,7 +18,7 @@ class NeulandAPIClient { return await this.performGraphQLQuery( gql` query { - announcements { + appAnnouncements { id title { de diff --git a/rogue-thi-app/pages/index.jsx b/rogue-thi-app/pages/index.jsx index c5f1586f..0d45ac0c 100644 --- a/rogue-thi-app/pages/index.jsx +++ b/rogue-thi-app/pages/index.jsx @@ -100,7 +100,7 @@ export const getServerSideProps = async ({ locale, req }) => { ?.split('=')[1] ?? '[]' ) - const announcements = data.announcements + const announcements = data.appAnnouncements .map((a) => ({ ...a, startDateTime: new Date(Number(a.startDateTime)),