mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-23 10:16:32 -05:00
Merge pull request #356 from davidmehren/fix-history-get
setHistory: Do not parse history into an array again
This commit is contained in:
commit
5b05760c8f
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({
|
User.update({
|
||||||
history: JSON.stringify(parseHistoryMapToArray(history))
|
history: JSON.stringify(history)
|
||||||
}, {
|
}, {
|
||||||
where: {
|
where: {
|
||||||
id: userId
|
id: userId
|
||||||
|
|
Loading…
Reference in a new issue