Commit a0e03508 authored by Sven Franck's avatar Sven Franck

removed check for lastmodified

parent d4d7d09d
...@@ -293,14 +293,14 @@ ...@@ -293,14 +293,14 @@
ReplicateStorage.prototype.post = function (command, metadata, option) { ReplicateStorage.prototype.post = function (command, metadata, option) {
var promise_list = [], index, length = this._storage_list.length; var promise_list = [], index, length = this._storage_list.length;
if (!isDate(metadata.modified)) { // if (!isDate(metadata.modified)) {
command.error( // command.error(
409, // 409,
"invalid 'modified' metadata", // "invalid 'modified' metadata",
"The metadata 'modified' should be a valid date string or date object" // "The metadata 'modified' should be a valid date string or date object"
); // );
return; // return;
} // }
for (index = 0; index < length; index += 1) { for (index = 0; index < length; index += 1) {
promise_list[index] = success( promise_list[index] = success(
command.storage(this._storage_list[index]).post(metadata, option) command.storage(this._storage_list[index]).post(metadata, option)
...@@ -313,14 +313,14 @@ ...@@ -313,14 +313,14 @@
ReplicateStorage.prototype.put = function (command, metadata, option) { ReplicateStorage.prototype.put = function (command, metadata, option) {
var promise_list = [], index, length = this._storage_list.length; var promise_list = [], index, length = this._storage_list.length;
if (!isDate(metadata.modified)) { // if (!isDate(metadata.modified)) {
command.error( // command.error(
409, // 409,
"invalid 'modified' metadata", // "invalid 'modified' metadata",
"The metadata 'modified' should be a valid date string or date object" // "The metadata 'modified' should be a valid date string or date object"
); // );
return; // return;
} // }
for (index = 0; index < length; index += 1) { for (index = 0; index < length; index += 1) {
promise_list[index] = promise_list[index] =
command.storage(this._storage_list[index]).put(metadata, option); command.storage(this._storage_list[index]).put(metadata, option);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment