Skip to content

Commit

Permalink
change pastEvents query to sort by DESC
Browse files Browse the repository at this point in the history
  • Loading branch information
jendiamond committed Oct 17, 2024
1 parent 4442584 commit 495d81a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gql/queries/FTVAEventSeriesDetail.gql
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ query FTVAEventSeriesDetail ($slug: [String!]) {
ftvaEventIntroduction
eventDescription
acknowledgement: richText
startDate
startDate
@formatDateTime(
format: "Y-m-d\\TH:i"
timezone: "America/Los_Angeles"
Expand Down Expand Up @@ -58,7 +58,7 @@ query FTVAEventSeriesDetail ($slug: [String!]) {
to: uri
sectionHandle
title: eventTitle
startDateWithTime
startDateWithTime
@formatDateTime(
format: "Y-m-d\\TH:i"
timezone: "America/Los_Angeles"
Expand All @@ -72,7 +72,7 @@ query FTVAEventSeriesDetail ($slug: [String!]) {
title
}
}
pastEvents: entries(section: "ftvaEvent", relatedToEntries: { section: "ftvaEventSeries", slug: $slug }, startDateWithTime: "< now", orderBy: "startDateWithTime ASC") {
pastEvents: entries(section: "ftvaEvent", relatedToEntries: { section: "ftvaEventSeries", slug: $slug }, startDateWithTime: "< now", orderBy: "startDateWithTime DESC") {
to: uri
title: eventTitle
startDateWithTime @formatDateTime(
Expand Down

0 comments on commit 495d81a

Please sign in to comment.