Been too long since i did anything, can't remember what the hell is in all this....

This commit is contained in:
2025-04-15 20:56:21 +01:00
parent 152c5cb18c
commit d7c15141b8
20 changed files with 248 additions and 78 deletions

View File

@@ -20,7 +20,7 @@ func BuildTemplateData(db *sql.DB, w http.ResponseWriter, r *http.Request) model
switch v := session.Values["user_id"].(type) {
case int:
user = models.GetUserByID(v)
user = models.GetUserByID(v) // ToDo should be storage not models
case int64:
user = models.GetUserByID(int(v))
}