fix updateHistory argument typing

Signed-off-by: Raccoon <raccoon@hackmd.io>
This commit is contained in:
Raccoon 2021-06-12 06:24:11 +08:00
parent 7827554bd9
commit fd5fe5212b
No known key found for this signature in database
GPG Key ID: 06770355DC9ECD38

View File

@ -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') {
getHistory(userid, function (err, history) {
if (err || !history) return