File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 4
4
@typescript -eslint/no-explicit-any: 0
5
5
*/
6
6
import { globalModels as models } from '../service-module/global-models'
7
- import { getShortName } from '../utils'
7
+ import { getNameFromPath } from '../utils'
8
8
9
9
export default function makeAuthActions ( feathersClient ) {
10
10
return {
@@ -39,7 +39,7 @@ export default function makeAuthActions(feathersClient) {
39
39
if ( state . serverAlias && state . userService ) {
40
40
const Model = Object . keys ( models [ state . serverAlias ] )
41
41
. map ( modelName => models [ state . serverAlias ] [ modelName ] )
42
- . find ( model => getShortName ( model . servicePath ) === getShortName ( state . userService ) )
42
+ . find ( model => getNameFromPath ( model . servicePath ) === getNameFromPath ( state . userService ) )
43
43
if ( Model ) {
44
44
user = new Model ( user )
45
45
}
You can’t perform that action at this time.
0 commit comments