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