introducing redux and fixing stuff

This commit is contained in:
2022-03-23 01:53:45 +01:00
parent c6bef04c73
commit 66a61d4cf9
29 changed files with 567 additions and 188 deletions

View File

@@ -6,8 +6,8 @@ import (
)
func UserScope(c *gin.Context) func(db *gorm.DB) *gorm.DB {
userId := int(c.GetFloat64("user_id"))
return func(db *gorm.DB) *gorm.DB {
userId := c.GetUint("user_id")
return db.Where("user_id", userId)
}
}