feat: Add baseUrl to notification edge functions

This commit is contained in:
gpt-engineer-app[bot]
2025-10-22 15:37:33 +00:00
parent 977411d2c6
commit fa43787360
4 changed files with 5 additions and 0 deletions

View File

@@ -98,6 +98,7 @@ serve(async (req) => {
// Build enhanced notification payload
const notificationPayload = {
baseUrl: 'https://www.thrillwiki.com',
reportId: payload.reportId,
reportType: payload.reportType,
reportedEntityType: payload.reportedEntityType,

View File

@@ -114,6 +114,7 @@ serve(async (req) => {
// Prepare enhanced notification payload
const notificationPayload = {
baseUrl: 'https://www.thrillwiki.com',
// Basic info
itemType: submission_type,
submitterName: submitter_name,

View File

@@ -110,6 +110,7 @@ serve(async (req) => {
// Build notification payload for all users
const notificationPayload = {
baseUrl: 'https://www.thrillwiki.com',
announcementId,
title: payload.title,
message: payload.message,

View File

@@ -132,6 +132,7 @@ serve(async (req) => {
if (status === 'approved') {
// Approval payload
payload = {
baseUrl: 'https://www.thrillwiki.com',
entityType,
entityName,
submissionId: submission_id,
@@ -141,6 +142,7 @@ serve(async (req) => {
} else {
// Rejection payload
payload = {
baseUrl: 'https://www.thrillwiki.com',
rejectionReason: reviewer_notes || 'No reason provided',
entityType,
entityName,