Skip to content
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

Merged
merged 4 commits into from
Dec 17, 2024

Conversation

marcusaleman
Copy link
Contributor

@marcusaleman marcusaleman commented Dec 12, 2024

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.

@@ -7,7 +7,7 @@ export default class ManageUsersService {
if (username) {
try {
return await this.manageUsersApiClient.users.get(token, { username })
} catch (e) {
} catch {
Copy link
Contributor Author

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

Copy link
Contributor

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'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}),
)
})
})

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@jnioche-jd jnioche-jd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comment

@marcusaleman marcusaleman marked this pull request as draft December 16, 2024 16:28
@marcusaleman marcusaleman marked this pull request as ready for review December 16, 2024 16:36
@jnioche-jd jnioche-jd dismissed their stale review December 17, 2024 10:17

objection invalid

@marcusaleman marcusaleman merged commit 4df7378 into main Dec 17, 2024
4 checks passed
@marcusaleman marcusaleman deleted the MAP-1942-redis8 branch December 17, 2024 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants