diff --git a/services/sync/modules/base_records/crypto.js b/services/sync/modules/base_records/crypto.js index 1fd0848a958..230ccb920d9 100644 --- a/services/sync/modules/base_records/crypto.js +++ b/services/sync/modules/base_records/crypto.js @@ -122,6 +122,14 @@ CryptoWrapper.prototype = { }, decrypt: function CryptoWrap_decrypt(onComplete, passphrase) { this._decrypt.async(this, onComplete, passphrase); + }, + + toString: function WBORec_toString() { + return "{ id: " + this.id + "\n" + + " parent: " + this.parentid + "\n" + + " depth: " + this.depth + ", index: " + this.sortindex + "\n" + + " modified: " + this.modified + "\n" + + " payload: " + json.encode(this.cleartext) + " }"; } }; diff --git a/services/sync/modules/base_records/wbo.js b/services/sync/modules/base_records/wbo.js index fa9bd5e18ce..6f0e5d8cd9e 100644 --- a/services/sync/modules/base_records/wbo.js +++ b/services/sync/modules/base_records/wbo.js @@ -113,7 +113,7 @@ WBORecord.prototype = { " parent: " + this.parentid + "\n" + " depth: " + this.depth + ", index: " + this.sortindex + "\n" + " modified: " + this.modified + "\n" + - " payload: " + json.encode(this.cleartext) + " }"; + " payload: " + json.encode(this.payload) + " }"; } };