[Bug] Fix timestamp in temporary message (#369)

* [Bug] Fix timestamp in temporary message

* Fix tests
This commit is contained in:
Pranav Raj S 2019-12-17 09:47:44 +05:30 committed by Sojan Jose
parent 87fb1adab1
commit 4b677ae00e
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ import DateHelper from '../../../shared/helpers/DateHelper';
const groupBy = require('lodash.groupby');
export const createTemporaryMessage = content => {
const timestamp = new Date().getTime();
const timestamp = new Date().getTime() / 1000;
return {
id: getUuid(),
content,

View file

@ -24,7 +24,7 @@ describe('#actions', () => {
id: '1111',
content: 'hello',
status: 'in_progress',
created_at: 1466424490000,
created_at: 1466424490,
message_type: 0,
});
});