Merge pull request #144 from vatesfr/julienf-fix-redis-items-updates
Fix items updates in Redis.
This commit is contained in:
commit
b2b39458da
@ -100,8 +100,10 @@ export default class Redis extends Collection {
|
||||
params.push(name, value)
|
||||
})
|
||||
|
||||
const key = `${prefix}:${model.id}`
|
||||
const promises = [
|
||||
redis.hmsetAsync(prefix + ':' + model.id, ...params)
|
||||
redis.delAsync(key),
|
||||
redis.hmsetAsync(key, ...params)
|
||||
]
|
||||
|
||||
// Update indexes.
|
||||
|
Loading…
Reference in New Issue
Block a user