From 10172af1998bde046dc2f944f7acedc0b9df4f08 Mon Sep 17 00:00:00 2001 From: muxator Date: Thu, 7 Mar 2019 00:02:24 +0100 Subject: [PATCH] db/API.js: no need to parseInt(time) here We are already sure that time is an int --- src/node/db/API.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/db/API.js b/src/node/db/API.js index a95723451..b71b5dda8 100644 --- a/src/node/db/API.js +++ b/src/node/db/API.js @@ -527,7 +527,7 @@ exports.appendChatMessage = function(padID, text, authorID, time, callback) var padMessage = require("ep_etherpad-lite/node/handler/PadMessageHandler.js"); // save chat message to database and send message to all connected clients - padMessage.sendChatMessageToPadClients(parseInt(time), authorID, text, padID); + padMessage.sendChatMessageToPadClients(time, authorID, text, padID); callback(); }