diff --git a/src/public/app/layouts/desktop_main_window_layout.js b/src/public/app/layouts/desktop_main_window_layout.js index bf0e78b37..c49376e6a 100644 --- a/src/public/app/layouts/desktop_main_window_layout.js +++ b/src/public/app/layouts/desktop_main_window_layout.js @@ -24,7 +24,6 @@ import NoteRevisionsWidget from "../widgets/collapsible_widgets/note_revisions.j import SimilarNotesWidget from "../widgets/collapsible_widgets/similar_notes.js"; import WhatLinksHereWidget from "../widgets/collapsible_widgets/what_links_here.js"; import SidePaneToggles from "../widgets/side_pane_toggles.js"; -import appContext from "../services/app_context.js"; const RIGHT_PANE_CSS = `
@@ -77,4 +81,4 @@ export default class ReadOnlyTextTypeWidget extends AbstractTextTypeWidget { this.loadIncludedNote(noteId, $(el)); }); } -} \ No newline at end of file +} diff --git a/src/services/sql.js b/src/services/sql.js index 325dbc292..179b35103 100644 --- a/src/services/sql.js +++ b/src/services/sql.js @@ -221,6 +221,7 @@ async function transactional(func) { await commit(); + // note that sync rows sent from this action will be sent again by scheduled periodic ping require('./ws.js').sendPingToAllClients(); transactionActive = false; @@ -267,4 +268,4 @@ module.exports = { executeScript, transactional, upsert -}; \ No newline at end of file +};