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

Bringing realm roles and permissions up to date on a fresh branch #156

Merged
merged 3 commits into from
Oct 11, 2023

Conversation

Reptapog
Copy link
Collaborator

Moving over changes from PR 126 to allow admin/owner role to view realm and board roles. Addresses most of BobaBoard/issues/issues/133

Also updates relevant Zod types.

}[]
| null
> => {
try {
Copy link
Collaborator

Choose a reason for hiding this comment

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

No need to try/catch anymore in these. Just let the exception rip.

});
} catch (e) {
error(e);
res.status(500).json({
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of doing this, you can directly throw a 500 error and it will be handled by the server:

throw new Internal500Error("failed to get realm ids");

Copy link
Collaborator

@essential-randomness essential-randomness left a comment

Choose a reason for hiding this comment

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

Left two comments on the new way we do things

@essential-randomness essential-randomness merged commit 9ed12f5 into BobaBoard:main Oct 11, 2023
4 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