Lua Scripts
Performance Issues
async getUser(user) {
const userIndex = await this.userRedisService.getUserIndex(user)
if (!userIndex) {
throw new Q.Errors.NoUserAvailableError('Not able to find user index for user', { user })
}
const user = await this.userRedisService.findByIndex(userIndex)
if (!user) {
throw new Q.Errors.NoUserAvailableError('Not able to find user for user', { user })
}
user.userIndex = userIndex
if (user && user.unlimited) {
return user
}
await this.userRedisService.updateTimestamp(user, userIndex)
return user
}Last updated