Fix items updates in Redis.
This commit is contained in:
parent
90f79b7708
commit
07288b3f26
@ -100,8 +100,10 @@ export default class Redis extends Collection {
|
|||||||
params.push(name, value)
|
params.push(name, value)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const key = `${prefix}:${model.id}`
|
||||||
const promises = [
|
const promises = [
|
||||||
redis.hmsetAsync(prefix + ':' + model.id, ...params)
|
redis.delAsync(key),
|
||||||
|
redis.hmsetAsync(key, ...params)
|
||||||
]
|
]
|
||||||
|
|
||||||
// Update indexes.
|
// Update indexes.
|
||||||
|
Loading…
Reference in New Issue
Block a user