Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch and display all events #5

Merged
merged 5 commits into from
Oct 9, 2024

Conversation

aidenm1
Copy link
Contributor

@aidenm1 aidenm1 commented Oct 8, 2024

🍞 What's new in this PR

🥐 Description

Fetch events from Supabase database and display on events page

🥖 Screenshots

image

🥪 How to review

Review api/supabase/queries/events.ts, then types/schema.d.ts, then app/events/page.tsx

🥧 Next steps

🥞 Relevant links

🥨 Online sources

🥯 Related PRs

CC: @celinechoiii

@@ -0,0 +1,12 @@
import supabase from '../createClient';

export async function getAllEvents() {

Choose a reason for hiding this comment

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

change to fetchAllEvents for consistency


if (error) {
console.error('An error occurred trying to read events:', error);
return;

Choose a reason for hiding this comment

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

maybe consider explicitly returning null here; might clear up some confusion

@celinechoiii
Copy link
Collaborator

Everything else looks good to me!! Great job on your first sprint 🥳

@celinechoiii celinechoiii merged commit de0d1f9 into main Oct 9, 2024
2 checks passed
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.

3 participants