Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix Database.prototype.replicate()

- should use this.name instead of name
  • Loading branch information...
commit 1466a024f86a0bb6741bbe41c4e9be9a3add16a9 1 parent cbfb468
@klaemo klaemo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/cradle/database/index.js
View
2  lib/cradle/database/index.js
@@ -31,7 +31,7 @@ Database.prototype.exists = function (callback) {
Database.prototype.replicate = function (target, options, callback) {
if (typeof(options) === 'function') { callback = options, options = {} }
- this.connection.replicate(cradle.merge({ source: name, target: target }, options), callback);
+ this.connection.replicate(cradle.merge({ source: this.name, target: target }, options), callback);
};
Database.prototype.info = function (callback) {
Please sign in to comment.
Something went wrong with that request. Please try again.