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

chore: adapted IUser to our DB schema #6627

Merged
merged 5 commits into from
Apr 2, 2024

Conversation

gastonfournier
Copy link
Contributor

About the changes

Our schema allows us to have null username or email. With this change at least we'll get a compiler warning when using either of these properties

Screenshot from 2024-03-20 12-20-45

Copy link

vercel bot commented Mar 20, 2024

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

Name Status Preview Comments Updated (UTC)
unleash-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 2, 2024 7:12am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Visit Preview Apr 2, 2024 7:12am

export const AccountTypes = ['User', 'Service Account'] as const;
type AccountType = (typeof AccountTypes)[number];

export interface IUser {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This can be replaced with the server type from @server/types

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This didn't work well because the frontend interface has other fields and it was not easy to fix

@gastonfournier gastonfournier merged commit fc43391 into main Apr 2, 2024
8 checks passed
@gastonfournier gastonfournier deleted the chore/iuser-inline-with-db-definition branch April 2, 2024 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants