mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 12:31:26 -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.'
|
? 'Submission has unresolved dependencies. Escalation required.'
|
||||||
: undefined;
|
: 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
|
const { error: updateError } = await supabase
|
||||||
.from('content_submissions')
|
.from('content_submissions')
|
||||||
.update({
|
.update({
|
||||||
|
|||||||
Reference in New Issue
Block a user