-
-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Description
While exploring the card routing logic I noticed that version resolution is handled differently in two similar routes.
In:
src/routes/edition/[edition]/+page.server.ts
the version is determined using:
const version = DeckService.getLatestVersion(edition);However in:
src/routes/edition/[edition]/[card]/+page.server.ts
the version is hardcoded:
const version = edition == 'webapp'
? '2.2'
: edition == 'mobileapp'
? '1.1'
: '1.0';I wanted to ask whether this difference is intentional (for example to lock the card route to specific versions), or if it would make sense to use DeckService.getLatestVersion() here as well for consistency.
Happy to submit a PR if aligning these would be appropriate.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels