Skip to content

Refactor session middleware and add constant for database name#940

Closed
moiz697 wants to merge 2 commits intoapache:ageviewer_gofrom
moiz697:ageviewer_go
Closed

Refactor session middleware and add constant for database name#940
moiz697 wants to merge 2 commits intoapache:ageviewer_gofrom
moiz697:ageviewer_go

Conversation

@moiz697
Copy link

@moiz697 moiz697 commented May 20, 2023

Refactor session middleware and add constant for database name

  • Refactored the UserSessions middleware function for improved readability and code style.
  • Introduced a constant variable DatabaseName to store the name of the database.
  • Updated the code to use the constant for session handling instead of a hard-coded string.
  • Made the necessary imports and error handling adjustments.

This commit improves the session middleware implementation and enhances code maintainability.

moiz697 added 2 commits May 21, 2023 01:43
- Refactored the  middleware function for improved readability and code style.
- Introduced a constant variable  to store the name of the database.
- Updated the code to use the constant for session handling instead of a hard-coded string.
- Made the necessary imports and error handling adjustments.

This commit improves the session middleware implementation and enhances code main
@moiz697 moiz697 closed this May 20, 2023
@moiz697 moiz697 deleted the ageviewer_go branch May 20, 2023 21:05
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.

1 participant