fix(xo-server/collection/redis#_extract): properly ignore missing entries

Introduced by d8280087a

Fixes #7281
This commit is contained in:
Julien Fontanet 2024-01-05 13:53:46 +01:00
parent 9be3c40ead
commit 74ff64dfb4

View File

@ -116,6 +116,10 @@ export default class Redis extends Collection {
return Promise.all(
map(ids, id => {
return this.#get(prefix + id).then(model => {
if (model === undefined) {
return
}
model = this._unserialize(model) ?? model
// Mix the identifier in.