fix(AuthToken): Namespace observable methods
This prevents methods that use the regular methods internally from clashing
This commit is contained in:
@@ -5,10 +5,10 @@ export default function(AuthToken) {
|
||||
AuthToken.findOne$ = Observable.fromNodeCallback(
|
||||
AuthToken.findOne.bind(AuthToken)
|
||||
);
|
||||
AuthToken.prototype.validate = Observable.fromNodeCallback(
|
||||
AuthToken.prototype.validate$ = Observable.fromNodeCallback(
|
||||
AuthToken.prototype.validate
|
||||
);
|
||||
AuthToken.prototype.destroy = Observable.fromNodeCallback(
|
||||
AuthToken.prototype.destroy$ = Observable.fromNodeCallback(
|
||||
AuthToken.prototype.destroy
|
||||
);
|
||||
});
|
||||
|
Reference in New Issue
Block a user