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

add waitlist notifications #48

Merged
merged 3 commits into from
Oct 25, 2023
Merged

add waitlist notifications #48

merged 3 commits into from
Oct 25, 2023

Conversation

upacyxou
Copy link
Contributor

  • add waitlist notifications

src/controllers/token.ts Outdated Show resolved Hide resolved
src/controllers/token.ts Outdated Show resolved Hide resolved
@@ -12,7 +12,7 @@ interface FirebaseNotificationProps {
body?: string
postId?: number
feedId?: number
type?: 'entanglement' | 'newpost'
type?: 'entanglement' | 'newpost' | 'waitlist'
Copy link

Choose a reason for hiding this comment

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

I assume it's better to create enum for that, imo.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's alright because it's strong-typed anyway and we're using it in just one place

Copy link
Contributor

Choose a reason for hiding this comment

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

enum is pretty the same in case we use those, no need for it

src/controllers/token.ts Outdated Show resolved Hide resolved
@upacyxou upacyxou merged commit 2c89df6 into main Oct 25, 2023
1 check passed
@upacyxou upacyxou deleted the add-waitlist-notifications branch October 25, 2023 20:54
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