Add internal sessions manager

This commit is contained in:
Dan Sosedoff
2022-12-02 13:36:31 -06:00
parent d8ee50ece6
commit 9074d4bfb8
6 changed files with 147 additions and 55 deletions

View File

@@ -39,7 +39,7 @@ func dbCheckMiddleware() gin.HandlerFunc {
}
// Determine the database connection handle for the session
conn := DbSessions[sid]
conn := DbSessions.Get(sid)
if conn == nil {
badRequest(c, errNotConnected)
return