Commit c455704d by Sebastián Katzer

Convert at only if provided

parent ae013ec0
...@@ -154,11 +154,13 @@ exports.convertProperties = function (options) { ...@@ -154,11 +154,13 @@ exports.convertProperties = function (options) {
} }
} }
if (typeof options.at == 'object') { if (options.at) {
options.at = options.at.getTime(); if (typeof options.at == 'object') {
} options.at = options.at.getTime();
}
options.at = Math.round(options.at/1000); options.at = Math.round(options.at/1000);
}
if (typeof options.data == 'object') { if (typeof options.data == 'object') {
options.data = JSON.stringify(options.data); options.data = JSON.stringify(options.data);
......
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