mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-06-11 23:55:15 +08:00
fixed date empty object bug in events
This commit is contained in:
@@ -134,6 +134,12 @@ function exec(src, data, req, original) {
|
||||
if(Object.keys(state).length) {
|
||||
return state;
|
||||
}
|
||||
|
||||
// process dates
|
||||
Object.keys(data).forEach(function (key) {
|
||||
if(data[key] && data[key].toISOString && data[key].toISOString.call) data[key] = data[key].toISOString();
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
function sanitize(src) {
|
||||
|
||||
Reference in New Issue
Block a user