fix(xo-server/Redis#{add,update}): return complete record
Introduced by 32afd5c46
Fixes https://xcp-ng.org/forum/post/68664
The returned record should not be serialized and should contain the identifier.
This commit is contained in:
parent
5b00cf3ecd
commit
194db8d0dd
@ -190,6 +190,8 @@ export default class Redis extends Collection {
|
||||
|
||||
await Promise.all(promises)
|
||||
|
||||
model = this._unserialize(model) ?? model
|
||||
model.id = id
|
||||
return model
|
||||
})
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user