-
-
Notifications
You must be signed in to change notification settings - Fork 417
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(user): support current user change #2232
base: dev
Are you sure you want to change the base?
Conversation
dd74b7f
to
4ceda37
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #2232 +/- ##
==========================================
- Coverage 30.77% 30.77% -0.01%
==========================================
Files 1275 1276 +1
Lines 70192 70203 +11
Branches 14789 14790 +1
==========================================
+ Hits 21600 21602 +2
- Misses 48592 48601 +9 ☔ View full report in Codecov by Sentry. |
View Deployment
|
[UnitRole.Reader]: 'Reader', | ||
[UnitRole.UNRECOGNIZED]: 'UNRECOGNIZED', | ||
}; | ||
export const createDefaultUser = (type: UnitRole) => { |
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.
提供这个方法的目的是?为什么一定需要一个 default user 呢?相关的 module 可否处理 user 为 null 的情况?
avatar: '', | ||
} as IUser; | ||
}; | ||
export const isDevRole = (userId: string, type: UnitRole) => { |
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.
Can we delete it?
No description provided.