diff --git a/src/jio.storage/replicatestorage.js b/src/jio.storage/replicatestorage.js index 01884704837241642d25f8bf7e9457e190df6050..f3607a2bc286b359a6e5262a00f09e6638ed9e44 100644 --- a/src/jio.storage/replicatestorage.js +++ b/src/jio.storage/replicatestorage.js @@ -340,14 +340,14 @@ ReplicateStorage.prototype.post = function (command, metadata, option) { var promise_list = [], index, length = this._storage_list.length; - if (!isDate(metadata.modified)) { - command.error( - 409, - "invalid 'modified' metadata", - "The metadata 'modified' should be a valid date string or date object" - ); - return; - } + // if (!isDate(metadata.modified)) { + // command.error( + // 409, + // "invalid 'modified' metadata", + // "The metadata 'modified' should be a valid date string or date object" + // ); + // return; + // } for (index = 0; index < length; index += 1) { promise_list[index] = success( command.storage(this._storage_list[index]).post(metadata, option) @@ -360,14 +360,14 @@ ReplicateStorage.prototype.put = function (command, metadata, option) { var promise_list = [], index, length = this._storage_list.length; - if (!isDate(metadata.modified)) { - command.error( - 409, - "invalid 'modified' metadata", - "The metadata 'modified' should be a valid date string or date object" - ); - return; - } + // if (!isDate(metadata.modified)) { + // command.error( + // 409, + // "invalid 'modified' metadata", + // "The metadata 'modified' should be a valid date string or date object" + // ); + // return; + // } for (index = 0; index < length; index += 1) { promise_list[index] = command.storage(this._storage_list[index]).put(metadata, option);