db/API.js: reuse the already required padMessageHandler (1 of 2)
Commit 94cb743ca8
("Fix API call appendChatMessage to send new message to all
connected clients") fixed a bug, but introduced a redundant require().
This commit is contained in:
parent
10172af199
commit
72260b86de
1 changed files with 1 additions and 2 deletions
|
@ -525,9 +525,8 @@ exports.appendChatMessage = function(padID, text, authorID, time, callback)
|
|||
time = Date.now();
|
||||
}
|
||||
|
||||
var padMessage = require("ep_etherpad-lite/node/handler/PadMessageHandler.js");
|
||||
// save chat message to database and send message to all connected clients
|
||||
padMessage.sendChatMessageToPadClients(time, authorID, text, padID);
|
||||
padMessageHandler.sendChatMessageToPadClients(time, authorID, text, padID);
|
||||
|
||||
callback();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue