Skip to content

Commit

Permalink
Merge branch 'main' into prod/festapp
Browse files Browse the repository at this point in the history
  • Loading branch information
miakh committed Dec 12, 2024
2 parents 0eff0f6 + 1e78a03 commit e95cdba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/dataServices/RightsService.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class RightsService{
var occasionLink = link ?? RouterService.currentOccasionLink;
if (occasionLink.isEmpty) {
model = LinkModel.extractOccasionLink(Uri.base.toString());
print(Uri.base.toString());
}

if(AppConfig.forceOccasionLink != null) {
Expand Down
5 changes: 5 additions & 0 deletions lib/dataServices/SynchroService.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,18 @@ class SynchroService {
}

static Future<OccasionLinkModel> getAppConfig({String? occasionLink, String? formLink}) async {
print(occasionLink);
print(formLink);

var data = await _supabase.rpc("get_app_config",
params: {"data_in": {
"link": occasionLink,
"form_link": formLink,
"organization": AppConfig.organization,
"platform": await PlatformHelper.getPlatform()
}});
print(data);

return OccasionLinkModel.fromJson(data);
}

Expand Down
1 change: 0 additions & 1 deletion lib/services/LinkModel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class LinkModel {
if (match != null) {
// Extract named groups
firstPart = match.namedGroup('firstPart');
secondPart = match.namedGroup('secondPart');

if (firstPart == FormPage.ROUTE) {
secondPart = match.namedGroup('secondPart');
Expand Down

0 comments on commit e95cdba

Please sign in to comment.