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 Nov 16, 2024
2 parents cd0aa7d + b1fe72c commit ac3f737
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/components/timeline/ScheduleTimeline.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class _ScheduleTimelineState extends State<ScheduleTimeline> {
children.add(
Center(
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 38.0),
padding: const EdgeInsets.symmetric(vertical: 28.0),
child: TextButton.icon(
onPressed: () {
widget.onAddNewEvent?.call(context, widget.eventGroups);
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/EventEditPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class _EventEditPageState extends State<EventEditPage> {
..maxParticipants = maxParticipants == 0 ? null : maxParticipants
..splitForMenWomen = splitForMenWomen!
..isGroupEvent = isGroupEvent!
..place = places!.firstWhereOrNull((p)=>p.id! == placeId!)
..place = places!.firstWhereOrNull((p)=>p.id == placeId)
..type = type
..description = content
..parentEventIds = showInsideEvent != null && showInsideEvent!.isNotEmpty
Expand Down
12 changes: 11 additions & 1 deletion supabase/functions/send-sign-in-code/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,16 @@ Deno.serve(async (req) => {

const organizationId = occasionData.organization;

const orgData = await supabaseAdmin
.from("organizations")
.select("data")
.eq("id", organizationId)
.single();

const orgConfig = orgData.data.data;
const appName = orgConfig.APP_NAME || "DefaultAppName";
const defaultUrl = orgConfig.DEFAULT_URL || "http://default.url";

// Fetch email template based on the organization
const template = await supabase
.from("email_templates")
Expand All @@ -104,7 +114,7 @@ Deno.serve(async (req) => {
subject: template.data.subject,
content: template.data.html,
subs,
from: `Festapp <${_DEFAULT_EMAIL}>`,
from: `${appName} | Festapp <${_DEFAULT_EMAIL}>`,
});

await supabaseAdmin
Expand Down

0 comments on commit ac3f737

Please # to comment.