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.
1 parent 02322ed commit cd8b015Copy full SHA for cd8b015
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 { getShortName } 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 => model.servicePath === getShortName(state.userService))
43
if (Model) {
44
user = new Model(user)
45
}
0 commit comments