We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c3ac2ee + c5ad6dd commit dacf998Copy full SHA for dacf998
src/auth-module/auth-module.actions.ts
@@ -4,6 +4,7 @@ eslint
4
@typescript-eslint/no-explicit-any: 0
5
*/
6
import { globalModels as models } from '../service-module/global-models'
7
+import { getNameFromPath } from '../utils'
8
9
export default function makeAuthActions(feathersClient) {
10
return {
@@ -38,7 +39,7 @@ export default function makeAuthActions(feathersClient) {
38
39
if (state.serverAlias && state.userService) {
40
const Model = Object.keys(models[state.serverAlias])
41
.map(modelName => models[state.serverAlias][modelName])
- .find(model => model.servicePath === state.userService)
42
+ .find(model => getNameFromPath(model.servicePath) === getNameFromPath(state.userService))
43
if (Model) {
44
user = new Model(user)
45
}
0 commit comments