fix(xo-server/collection/redis#get): correctly filter on properties when id is provided
This commit is contained in:
parent
28b13ccfff
commit
df38366066
@ -187,7 +187,7 @@ export default class Redis extends Collection {
|
||||
if (id !== undefined) {
|
||||
properties = omit(properties, 'id')
|
||||
return this._extract([id]).then(models => {
|
||||
return models.length && !isEmpty(properties) ? filter(models) : models
|
||||
return models.length && !isEmpty(properties) ? filter(models, properties) : models
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user