mirror of
https://github.com/status-im/codimd.git
synced 2025-01-13 02:24:53 +00:00
fix updateHistory argument typing
Signed-off-by: Raccoon <raccoon@hackmd.io>
This commit is contained in:
parent
7827554bd9
commit
fd5fe5212b
@ -71,7 +71,7 @@ function setHistory (userid, history, callback) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function updateHistory (userid, noteId, document, time) {
|
export function updateHistory (userid, noteId, document?: string, time?: any) {
|
||||||
if (userid && noteId && typeof document !== 'undefined') {
|
if (userid && noteId && typeof document !== 'undefined') {
|
||||||
getHistory(userid, function (err, history) {
|
getHistory(userid, function (err, history) {
|
||||||
if (err || !history) return
|
if (err || !history) return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user