Skip to content

94 add event fetch from database#122

Merged
Vikachubro21 merged 15 commits into
spring26from
94-add-event-fetch-from-database
May 12, 2026
Merged

94 add event fetch from database#122
Vikachubro21 merged 15 commits into
spring26from
94-add-event-fetch-from-database

Conversation

@nguyenpham18
Copy link
Copy Markdown
Collaborator

fetch upcoming events on both the home page and the main event page

@nguyenpham18 nguyenpham18 linked an issue Apr 23, 2026 that may be closed by this pull request
8 tasks
@nguyenpham18 nguyenpham18 changed the base branch from main to spring26 April 23, 2026 21:38
Comment thread server/api/notification/[id].get.ts Outdated
if (!userId) {
throw createError({
statusCode: 400,
statusMessage: "Notification ID and User ID are required"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fetches all notifications for a specific user right? Rather than using the user_id in the query, you can use the betterAuth instance to fetch the session, and that will contain the user_id that you need.

Copy link
Copy Markdown
Collaborator

@Vikachubro21 Vikachubro21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Vikachubro21 Vikachubro21 merged commit f200578 into spring26 May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Event Fetch From Database

2 participants