mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-23 10:16:32 -05:00
realtime.ts: Fix history import
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
038db39c0e
commit
943ddc4058
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue