Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
withchao committed Jul 6, 2023
1 parent ea43931 commit aa8044d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/rpc/admin/register_add_friend.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (o *adminServer) AddDefaultFriend(ctx context.Context, req *admin.AddDefaul
return nil, err
}
if len(exists) > 0 {
return nil, errs.ErrUserIDExisted.Wrap(strings.Join(exists, ", "))
return nil, errs.ErrDuplicateKey.Wrap(strings.Join(exists, ", "))
}
now := time.Now()
ms := make([]*admin2.RegisterAddFriend, 0, len(req.UserIDs))
Expand Down

0 comments on commit aa8044d

Please sign in to comment.