Skip to content

Refactor session middleware and add constant for database name#941

Merged
dehowef merged 1 commit intoapache:ageviewer_gofrom
moiz697:sessionpr
May 22, 2023
Merged

Refactor session middleware and add constant for database name#941
dehowef merged 1 commit intoapache:ageviewer_gofrom
moiz697:sessionpr

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.

Copy link
Member

@dehowef dehowef left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@dehowef dehowef merged commit 2b6beff into apache:ageviewer_go May 22, 2023
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.

2 participants