Skip to content

Commit

Permalink
Fix schedule return values
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeGinnivan committed Nov 8, 2024
1 parent eec4d89 commit 12c2e3e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 1 addition & 3 deletions website/app/routes/app-agenda-grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ export async function loader({ context }: LoaderFunctionArgs) {
: // TODO Deal with data type
[]

const schedule = schedules[0]

return json(schedule, {
return json(schedules, {
headers: {
'Cache-Control': CACHE_CONTROL.conf,
'Access-Control-Allow-Origin': '*',
Expand Down
6 changes: 6 additions & 0 deletions website/remix-routes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ declare module "remix-routes" {
query: ExportedQuery<import('app/routes/app-agenda-speakers').SearchParams>,
};

"/app-announcements": {
params: never,
query: ExportedQuery<import('app/routes/app-announcements').SearchParams>,
};

"/app-config": {
params: never,
query: ExportedQuery<import('app/routes/app-config').SearchParams>,
Expand Down Expand Up @@ -104,6 +109,7 @@ declare module "remix-routes" {
| 'routes/app-agenda-grid'
| 'routes/app-agenda-sessions'
| 'routes/app-agenda-speakers'
| 'routes/app-announcements'
| 'routes/app-config'
| 'routes/app-content.$'
| 'routes/blog.rss[.xml]';
Expand Down

0 comments on commit 12c2e3e

Please sign in to comment.