mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-29 14:25:38 -04:00
setHistory: Do not parse history into an array again, historyPost already made sure we have an array
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
d3aa040626
commit
539d99b835
1 changed files with 2 additions and 2 deletions
|
@ -81,9 +81,9 @@ function getHistory (userId, callback: (err: any, history: any) => void): void {
|
|||
})
|
||||
}
|
||||
|
||||
function setHistory (userId: string, history: any, callback: (err: any | null, count: [number, User[]] | null) => void): void {
|
||||
function setHistory (userId: string, history: any[], callback: (err: any | null, count: [number, User[]] | null) => void): void {
|
||||
User.update({
|
||||
history: JSON.stringify(parseHistoryMapToArray(history))
|
||||
history: JSON.stringify(history)
|
||||
}, {
|
||||
where: {
|
||||
id: userId
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue