From 3c46cad767922db010389a48ef0a4a2e71b02970 Mon Sep 17 00:00:00 2001 From: Sebastian Winkler Date: Fri, 1 Nov 2019 18:30:27 +0100 Subject: [PATCH] config: fixes method names --- config/user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/user.go b/config/user.go index 2dbeae9..5b99300 100644 --- a/config/user.go +++ b/config/user.go @@ -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") } @@ -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") }