From 93e48ac457047a4b8669a3cf9d7647bc82d86e5e Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Thu, 6 Nov 2025 04:31:58 +0000 Subject: [PATCH] Fix park type and moderator ID --- supabase/functions/process-selective-approval/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/supabase/functions/process-selective-approval/index.ts b/supabase/functions/process-selective-approval/index.ts index 46288df8..10e4b70e 100644 --- a/supabase/functions/process-selective-approval/index.ts +++ b/supabase/functions/process-selective-approval/index.ts @@ -1179,6 +1179,13 @@ serve(withRateLimit(async (req) => { ? 'Submission has unresolved dependencies. Escalation required.' : undefined; + // Set moderator_id session variable for audit logging + await supabase.rpc('set_config', { + setting: 'app.moderator_id', + value: authenticatedUserId, + is_local: true + }); + const { error: updateError } = await supabase .from('content_submissions') .update({