mirror of
https://github.com/zadam/trilium.git
synced 2025-01-17 20:48:12 +08:00
tiny fixes
This commit is contained in:
parent
1581464d8c
commit
ef1c840aa7
2 changed files with 10 additions and 7 deletions
|
@ -15,7 +15,8 @@ const ENTITY_NAME_TO_ENTITY = {
|
|||
"note_revisions": NoteRevision,
|
||||
"recent_notes": RecentNote,
|
||||
"options": Option,
|
||||
"api_tokens": ApiToken
|
||||
"api_tokens": ApiToken,
|
||||
"links": Link
|
||||
};
|
||||
|
||||
function getEntityFromEntityName(entityName) {
|
||||
|
|
|
@ -52,6 +52,7 @@ async function sendMessage(client, message) {
|
|||
async function sendMessageToAllClients(message) {
|
||||
const jsonStr = JSON.stringify(message);
|
||||
|
||||
if (webSocketServer) {
|
||||
log.info("Sending message to all clients: " + jsonStr);
|
||||
|
||||
webSocketServer.clients.forEach(function each(client) {
|
||||
|
@ -60,6 +61,7 @@ async function sendMessageToAllClients(message) {
|
|||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
async function sendPing(client, lastSentSyncId) {
|
||||
const syncData = await sql.getRows("SELECT * FROM sync WHERE id > ?", [lastSentSyncId]);
|
||||
|
|
Loading…
Reference in a new issue