From 943ddc4058a5e5fe21598fc01c043312855ed8f3 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Sun, 12 Apr 2020 17:41:18 +0200 Subject: [PATCH] realtime.ts: Fix history import Signed-off-by: David Mehren --- lib/realtime.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/realtime.ts b/lib/realtime.ts index b1469d352..c5671f47d 100644 --- a/lib/realtime.ts +++ b/lib/realtime.ts @@ -1,7 +1,7 @@ import { Author, Note, Revision, User } from './models' import ot from './ot' -import history from './history' +import { History } from './history' import { logger } from './logger' import { config } from './config' import moment from 'moment' @@ -99,7 +99,7 @@ function finishUpdateNote (note, _note, callback) { function updateHistory (userId, note, time?) { const noteId = note.alias ? note.alias : Note.encodeNoteId(note.id) - if (note.server) history.updateHistory(userId, noteId, note.server.document, time) + if (note.server) History.updateHistory(userId, noteId, note.server.document, time) } function updateNote (note, callback) {