Skip to content

Commit

Permalink
Fix small mistake with membership key
Browse files Browse the repository at this point in the history
  • Loading branch information
NHAS committed Jun 10, 2024
1 parent 381947f commit 00be04e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/data/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ func CreateUserDataAccount(username string) (UserModel, error) {

txn := etcd.Txn(context.Background())
txn.If(clientv3util.KeyMissing("users-" + username + "-"))
txn.Then(clientv3.OpPut(UsersPrefix+username+"-", string(b)), clientv3.OpPut(MembershipKey+"-"+username, string(b)))
txn.Then(clientv3.OpPut(UsersPrefix+username+"-", string(b)), clientv3.OpPut(MembershipKey+"-"+username, ""))

res, err := txn.Commit()
if err != nil {
Expand Down

0 comments on commit 00be04e

Please sign in to comment.