fix(db): update perf patch to use object
This commit is contained in:
Родитель
6f4a545a01
Коммит
bbdaf226f7
|
@ -502,7 +502,7 @@ module.exports = (
|
|||
}
|
||||
|
||||
token.update(userAgentString)
|
||||
const newToken = [{
|
||||
const newToken = {
|
||||
tokenId: token.id,
|
||||
uid: uid,
|
||||
uaBrowser: token.uaBrowser,
|
||||
|
@ -512,7 +512,7 @@ module.exports = (
|
|||
uaDeviceType: token.uaDeviceType,
|
||||
lastAccessTime: token.lastAccessTime,
|
||||
createdAt: token.createdAt
|
||||
}]
|
||||
}
|
||||
let sessionTokens
|
||||
// get the object of session tokens associated with the given uid
|
||||
return this.redis.getAsync(uid)
|
||||
|
|
Загрузка…
Ссылка в новой задаче