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

Feature/bre 58 UI updates on postgres changes #34

Merged
merged 4 commits into from
Apr 2, 2024

Conversation

ElTugucci
Copy link
Collaborator

  • getCurrentUserActiveStampCount and other functions moved to actions.ts.

  • Stamps.tsx is now a client component

  • subscribed to actions of "stamp_logs" table and re-fetch the stamp count on every update

  • const stampsRequired = parseInt(process.env.STAMPS_REQUIRED || "10") I hardcoded 10 here because it always returns 0 from .env.local variable

  • the datatbase updates are filtered with user id, all except DELETE, there is an open issue on supabase github page: Enable filters for delete events supabase/walrus#53

Copy link

vercel bot commented Apr 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
coffee-pass-sfug ✅ Ready (Inspect) Visit Preview Apr 1, 2024 4:50pm

Copy link
Collaborator

@Tuomas01 Tuomas01 left a comment

Choose a reason for hiding this comment

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

Updating stamps in real time is working and nothing was broken

@Tuomas01 Tuomas01 merged commit 72d43de into master Apr 2, 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.

2 participants