-
Notifications
You must be signed in to change notification settings - Fork 3
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
[_] feat: workspace role guard #291
[_] feat: workspace role guard #291
Conversation
a655d5b
to
1093314
Compare
1093314
to
131525b
Compare
workspaceId: string, | ||
role: WorkspaceRole, | ||
) { | ||
const { workspace, workspaceUser } = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This destructuring could fail if the result from the database is null, could not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either the workspace or the workspaceUser can be null. I handled that case in the usecase so a plain and not destructurable null is never returned.
Quality Gate failedFailed conditions |
…dleware [_] feat: workspace role guard
No description provided.