Skip to content

Commit

Permalink
fix(Events): notification data
Browse files Browse the repository at this point in the history
  • Loading branch information
simonknittel committed Feb 24, 2025
1 parent 17db36d commit 6067b6e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/src/app/api/scrape-discord-events/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ export async function POST(request: NextRequest) {
["updatedDiscordEvent"],
"Event aktualisiert",
currentEvent.name,
`/app/events/${currentEvent.id}`,
`/app/events/${existingEvent.id}`,
);
}
} else {
await prisma.discordEvent.create({
const newEvent = await prisma.discordEvent.create({
data: {
discordId: currentEvent.id,
discordCreatorId: currentEvent.creator_id,
Expand All @@ -89,8 +89,8 @@ export async function POST(request: NextRequest) {
await publishNotification(
["newDiscordEvent"],
"Neues Event",
currentEvent.name,
`/app/events/${currentEvent.id}`,
newEvent.discordName,
`/app/events/${newEvent.id}`,
);
}

Expand Down

0 comments on commit 6067b6e

Please sign in to comment.