diff --git a/lib/remote-connector.js b/lib/remote-connector.js index 39f8514..b6024bd 100644 --- a/lib/remote-connector.js +++ b/lib/remote-connector.js @@ -101,11 +101,11 @@ function createProxyMethod(Model, remotes, remoteMethod) { if (remoteMethod.isStatic) { remotes.invoke(remoteMethod.stringName, args, callback); - return callback.promise; + } else { + var ctorArgs = [this.id]; + remotes.invoke(remoteMethod.stringName, ctorArgs, args, callback); } - var ctorArgs = [this.id]; - remotes.invoke(remoteMethod.stringName, ctorArgs, args, callback); return callback.promise; }