refac: fixed, better, smarter, correct dependency injection

This commit is contained in:
Florian Sylvain
2025-03-29 00:51:01 +01:00
parent d895477b8c
commit a77a5ad314
35 changed files with 169 additions and 144 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ func StartServerIfNotAlready() {
}
func getAuthorizationCookie(userId uint32) *http.Cookie {
_, tokenString, err := auth.Token.Encode(map[string]interface{}{"user_id": userId})
_, tokenString, err := auth.Token.Encode(map[string]any{"user_id": userId})
if err != nil {
panic(err)
}