mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 06:51:12 -05:00
Fix park type and moderator ID
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user