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:
Julien Fontanet 2023-12-21 15:39:46 +01:00
parent 5b00cf3ecd
commit 194db8d0dd

View File

@ -190,6 +190,8 @@ export default class Redis extends Collection {
await Promise.all(promises)
model = this._unserialize(model) ?? model
model.id = id
return model
})
)