-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MAP-1942 redis 8 upgrade and esLint upgrade as per TEMPLATE TYPESCRIPT #220
Conversation
…T Update dependencies 2024-12-05 #492
@@ -7,7 +7,7 @@ export default class ManageUsersService { | |||
if (username) { | |||
try { | |||
return await this.manageUsersApiClient.users.get(token, { username }) | |||
} catch (e) { | |||
} catch { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As upgraded Lint claim about unused 'e' variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about logging the exception instead?
@@ -1,6 +1,6 @@ | |||
import { v4 as uuidv4 } from 'uuid' | |||
import session, { MemoryStore, Store } from 'express-session' | |||
import RedisStore from 'connect-redis' | |||
import { RedisStore } from 'connect-redis' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}), | ||
) | ||
}) | ||
}) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comment
As a warden of hmpps-locations-inside-prison we need to update Typescript code to align to the last dependencies update and modernise code with Redis 8.
Reference Template Typescript ministryofjustice/hmpps-template-typescript#492
Code has been tested locally.