Commit c455704d by Sebastián Katzer

Convert at only if provided

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