fix: rename getresuser util

This commit is contained in:
Lakhan Samani
2021-12-24 06:35:02 +05:30
parent 30cde3e521
commit 1b3f931074
8 changed files with 8 additions and 8 deletions

View File

@@ -26,7 +26,7 @@ func CreateAuthToken(user db.User, tokenType enum.TokenType, roles []string) (st
expiresAt := time.Now().Add(expiryBound).Unix()
resUser := GetResUser(user)
resUser := GetResponseUserData(user)
userBytes, _ := json.Marshal(&resUser)
var userMap map[string]interface{}
json.Unmarshal(userBytes, &userMap)