Skip to content

Commit

Permalink
config: fixes method names
Browse files Browse the repository at this point in the history
  • Loading branch information
Seklfreak committed Nov 1, 2019
1 parent 5d9ccac commit 3c46cad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func UserGetInterface(db *gorm.DB, userID, key string, value interface{}) error
return getInterface(db, userNamespace(userID), key, value)
}

func UserGetBytes(db *gorm.DB, userID, key string, value []byte) error {
func UserSetBytes(db *gorm.DB, userID, key string, value []byte) error {
if userID == "" {
return errors.New("invalid User ID")
}
Expand All @@ -87,7 +87,7 @@ func UserGetBytes(db *gorm.DB, userID, key string, value []byte) error {
return setByte(db, userNamespace(userID), key, value)
}

func UserSetBytes(db *gorm.DB, userID, key string) ([]byte, error) {
func UserGetBytes(db *gorm.DB, userID, key string) ([]byte, error) {
if userID == "" {
return nil, errors.New("invalid User ID")
}
Expand Down

0 comments on commit 3c46cad

Please sign in to comment.