fix: update to use db.Provider

This commit is contained in:
Lakhan Samani
2022-01-21 13:34:04 +05:30
parent 8a4b2feffe
commit cb96d2d8d1
44 changed files with 114 additions and 1264 deletions

View File

@@ -27,7 +27,7 @@ func SaveSessionInDB(userId string, c *gin.Context) {
IP: GetIP(c.Request),
}
err := db.Provider.AddSession(&sessionData)
err := db.Provider.AddSession(sessionData)
if err != nil {
log.Println("=> error saving session in db:", err)
} else {