File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -48,12 +48,6 @@ export default function feathersVuex(feathers, options: FeathersVuexOptions) {
48
48
)
49
49
}
50
50
51
- if ( ! options . serverAlias ) {
52
- throw new Error (
53
- `You must provide a 'serverAlias' in the options to feathersVuex`
54
- )
55
- }
56
-
57
51
// Setup the event handlers. By default they just return the value of `options.enableEvents`
58
52
defaults . handleEvents = events . reduce ( ( obj , eventName ) => {
59
53
obj [ eventName ] = ( ) => options . enableEvents || true
@@ -62,6 +56,12 @@ export default function feathersVuex(feathers, options: FeathersVuexOptions) {
62
56
63
57
options = Object . assign ( { } , defaults , options )
64
58
59
+ if ( ! options . serverAlias ) {
60
+ throw new Error (
61
+ `You must provide a 'serverAlias' in the options to feathersVuex`
62
+ )
63
+ }
64
+
65
65
addClient ( { client : feathers , serverAlias : options . serverAlias } )
66
66
67
67
const BaseModel = makeBaseModel ( options )
You can’t perform that action at this time.
0 commit comments