Skip to content

Commit

Permalink
Update 2.4.2 (#235)
Browse files Browse the repository at this point in the history
* feat: add support to Deck2 (#219)

* fix: add company description (#220)

* feat: add sponsors site (#223)

Co-authored-by: André Romão <[email protected]>

* adds calendar to event in cannon (#224)

* improves promo codes (#225)

* improves compatibility with new deck (#229)

* Fix event id type (#230)

* improves compatibility with new deck

* revert and fix

* fix deck url in config

* fix eventId

* fix

* fix: add company field to achievement (#232)

* fix: undefined company on getSession (#234)

---------

Co-authored-by: Nuno Alves <[email protected]>
Co-authored-by: André Romão <[email protected]>
Co-authored-by: André Romão <[email protected]>
  • Loading branch information
4 people authored Apr 16, 2024
1 parent d25289b commit 5267821
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/resources/deck.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ async function getSessions(edition, withoutAchievements) {

async function getSession(sessionId) {
const session = await axios.get(`${DECK_API_URL}/public/sessions/${sessionId}`)
session.data.company.participation?.sort((a, b) => b.event - a.event) // Sort by event in descending order
session.data.speaker.forEach(speaker => speaker.participation?.sort((a, b) => b.event - a.event)) // Sort by event in descending order
session.data.company?.participation?.sort((a, b) => b.event - a.event) // Sort by event in descending order
session.data.speaker?.forEach(speaker => speaker.participation?.sort((a, b) => b.event - a.event)) // Sort by event in descending order
return transformSession(session.data)
}

Expand Down

0 comments on commit 5267821

Please sign in to comment.