Skip to content

Commit

Permalink
Fix event id type (#230)
Browse files Browse the repository at this point in the history
* improves compatibility with new deck

* revert and fix

* fix deck url in config

* fix eventId
  • Loading branch information
andreromao authored Apr 14, 2024
1 parent 4d22a20 commit 0862001
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ config.webapp = {
}

config.deck = {
url: process.env.CANNON_EVENTDECK_URL || 'https://deck.sinfo.org'
url: process.env.CANNON_EVENTDECK_URL || 'https://deck.sinfo.org/api'
}

config.upload = {
Expand Down
2 changes: 1 addition & 1 deletion server/resources/deck.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function transformSession(session, options) {
name: session.title,
description: session.description,
kind: sessionKinds[session.kind] || session.kind,
event: options?.event || (session.company?.participation?.length > 0 && session.company.participation[0].event),
event: String(options?.event || (session.company?.participation?.length > 0 && session.company.participation[0].event)),
date: session.begin,
duration: new Date(new Date(session.end) - new Date(session.begin)),
place: session.place,
Expand Down

0 comments on commit 0862001

Please sign in to comment.