Skip to content

Commit

Permalink
fix(api): migrate to new announcement resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert27 committed Nov 21, 2024
1 parent 41cc5c5 commit 60b685a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rogue-thi-app/lib/backend/neuland-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class NeulandAPIClient {
return await this.performGraphQLQuery(
gql`
query {
announcements {
appAnnouncements {
id
title {
de
Expand Down
2 changes: 1 addition & 1 deletion rogue-thi-app/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down

0 comments on commit 60b685a

Please sign in to comment.