Skip to content

Commit

Permalink
fix(xo-server/Redis#{add,update}): return complete record
Browse files Browse the repository at this point in the history
Introduced by 32afd5c

Fixes https://xcp-ng.org/forum/post/68664

The returned record should not be serialized and should contain the identifier.
  • Loading branch information
julien-f committed Dec 21, 2023
1 parent 5b00cf3 commit 194db8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/xo-server/src/collection/redis.mjs
Expand Up @@ -190,6 +190,8 @@ export default class Redis extends Collection {

await Promise.all(promises)

model = this._unserialize(model) ?? model
model.id = id
return model
})
)
Expand Down

0 comments on commit 194db8d

Please sign in to comment.