Use the current timestamps
This commit is contained in:
@ -34,7 +34,6 @@ function add(data) {
|
||||
return error('Type ' + data.type + ' is not supported yet.');
|
||||
}
|
||||
|
||||
var added = Date.now();
|
||||
var reportId = uuid.v4();
|
||||
var report = {
|
||||
id: reportId,
|
||||
@ -51,15 +50,13 @@ function add(data) {
|
||||
user: data.user,
|
||||
userId: typeof data.user === 'object' ? data.user.id : data.user,
|
||||
meta: data.meta,
|
||||
exception: data.exception,
|
||||
added: added
|
||||
exception: data.exception
|
||||
};
|
||||
/*
|
||||
var payload = {
|
||||
id: uuid.v4(),
|
||||
reportId: reportId,
|
||||
state: data.payload,
|
||||
added: added
|
||||
state: data.payload
|
||||
};
|
||||
*/
|
||||
|
||||
|
Reference in New Issue
Block a user