[Bug] Fix timestamp in temporary message (#369)
* [Bug] Fix timestamp in temporary message * Fix tests
This commit is contained in:
parent
87fb1adab1
commit
4b677ae00e
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ import DateHelper from '../../../shared/helpers/DateHelper';
|
||||||
const groupBy = require('lodash.groupby');
|
const groupBy = require('lodash.groupby');
|
||||||
|
|
||||||
export const createTemporaryMessage = content => {
|
export const createTemporaryMessage = content => {
|
||||||
const timestamp = new Date().getTime();
|
const timestamp = new Date().getTime() / 1000;
|
||||||
return {
|
return {
|
||||||
id: getUuid(),
|
id: getUuid(),
|
||||||
content,
|
content,
|
||||||
|
|
|
@ -24,7 +24,7 @@ describe('#actions', () => {
|
||||||
id: '1111',
|
id: '1111',
|
||||||
content: 'hello',
|
content: 'hello',
|
||||||
status: 'in_progress',
|
status: 'in_progress',
|
||||||
created_at: 1466424490000,
|
created_at: 1466424490,
|
||||||
message_type: 0,
|
message_type: 0,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue