Skip to content

Commit

Permalink
Merge branch
Browse files Browse the repository at this point in the history
  • Loading branch information
loleg committed Apr 4, 2022
1 parent 0d2effe commit 6826f30
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions storage/database/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,6 @@ func (me *UserDB) updateApiKeys(u *model.User, tx db.DB) error {

for _, a := range u.ApiKeys {
if me.keyIsNew(existingKeys, a) {
// a.HideKey()
newKeys = append(newKeys, *a)
err := tx.Set(userApiKeyBucket, a.Key, u.ID)
if err != nil {
Expand All @@ -490,7 +489,6 @@ func (me *UserDB) keyIsNew(existingKeys []model.ApiKey, apiKey *model.ApiKey) bo
exists := false
var tmp model.ApiKey
tmp.Key = apiKey.Key
// tmp.HideKey()
for _, k := range existingKeys {
if k.Key == tmp.Key {
exists = true
Expand Down

0 comments on commit 6826f30

Please sign in to comment.