mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 11:51:14 -05:00
feat: Add baseUrl to notification edge functions
This commit is contained in:
@@ -98,6 +98,7 @@ serve(async (req) => {
|
|||||||
|
|
||||||
// Build enhanced notification payload
|
// Build enhanced notification payload
|
||||||
const notificationPayload = {
|
const notificationPayload = {
|
||||||
|
baseUrl: 'https://www.thrillwiki.com',
|
||||||
reportId: payload.reportId,
|
reportId: payload.reportId,
|
||||||
reportType: payload.reportType,
|
reportType: payload.reportType,
|
||||||
reportedEntityType: payload.reportedEntityType,
|
reportedEntityType: payload.reportedEntityType,
|
||||||
|
|||||||
@@ -114,6 +114,7 @@ serve(async (req) => {
|
|||||||
|
|
||||||
// Prepare enhanced notification payload
|
// Prepare enhanced notification payload
|
||||||
const notificationPayload = {
|
const notificationPayload = {
|
||||||
|
baseUrl: 'https://www.thrillwiki.com',
|
||||||
// Basic info
|
// Basic info
|
||||||
itemType: submission_type,
|
itemType: submission_type,
|
||||||
submitterName: submitter_name,
|
submitterName: submitter_name,
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ serve(async (req) => {
|
|||||||
|
|
||||||
// Build notification payload for all users
|
// Build notification payload for all users
|
||||||
const notificationPayload = {
|
const notificationPayload = {
|
||||||
|
baseUrl: 'https://www.thrillwiki.com',
|
||||||
announcementId,
|
announcementId,
|
||||||
title: payload.title,
|
title: payload.title,
|
||||||
message: payload.message,
|
message: payload.message,
|
||||||
|
|||||||
@@ -132,6 +132,7 @@ serve(async (req) => {
|
|||||||
if (status === 'approved') {
|
if (status === 'approved') {
|
||||||
// Approval payload
|
// Approval payload
|
||||||
payload = {
|
payload = {
|
||||||
|
baseUrl: 'https://www.thrillwiki.com',
|
||||||
entityType,
|
entityType,
|
||||||
entityName,
|
entityName,
|
||||||
submissionId: submission_id,
|
submissionId: submission_id,
|
||||||
@@ -141,6 +142,7 @@ serve(async (req) => {
|
|||||||
} else {
|
} else {
|
||||||
// Rejection payload
|
// Rejection payload
|
||||||
payload = {
|
payload = {
|
||||||
|
baseUrl: 'https://www.thrillwiki.com',
|
||||||
rejectionReason: reviewer_notes || 'No reason provided',
|
rejectionReason: reviewer_notes || 'No reason provided',
|
||||||
entityType,
|
entityType,
|
||||||
entityName,
|
entityName,
|
||||||
|
|||||||
Reference in New Issue
Block a user