-
Notifications
You must be signed in to change notification settings - Fork 11
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
Compilation error saying incompatible types for getCurrentUser #107
Comments
hii @siva-nadella-lab , add @Tyagi-Sunny & @yeshamavani |
Thank you Sunny! Please refer to this folder. The committed code is with the compilation error. https://github.com/siva-nadella-lab/play-arena/tree/main/ivue-referral-api-new-mongodb |
@siva-nadella-lab we will fix from our end this will get the same user that you are saving in your authenticate sequence step |
refactor test cases related to pr 108 gh-107
refactor test cases related to pr 108 gh-107
🎉 This issue has been resolved in version 7.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@siva-nadella-lab A new version is released please check and let us know if you have any further queries |
Thank you for the fix! |
Describe the bug
I have tried to use loopback4-authentication and loopback4-auditlog and when I try to change my repository to extend from AuditRepositoryMixin, it throws the following error message. We are unsure if any step is missed out or if these are compatible libraries.
Class 'HospitalRepository' incorrectly extends base class 'DefaultCrudRepository<Hospital, any, HospitalRelations> & IAuditMixin'.
Type 'HospitalRepository' is not assignable to type 'IAuditMixin'.
The types returned by 'getCurrentUser()' are incompatible between these types.
Type 'Promise' is not assignable to type 'Promise<User<string, string, string>>'.
Type 'IAuthUser' is missing the following properties from type 'User<string, string, string>': permissions, authClientId, role, firstName, lastName
To Reproduce
Please provide a user who can review the changes in our Git repository and I can add them to view the issue.
The text was updated successfully, but these errors were encountered: