chore: fix typo

This commit is contained in:
Steven 2023-08-21 01:55:16 +08:00
parent 7e0ada6161
commit bd31c19a15

View File

@ -31,7 +31,7 @@ func NewUserService(secret string, store *store.Store) *UserService {
} }
} }
func (s *UserService) ListUsers(ctx context.Context, request *apiv2pb.ListShortcutsRequest) (*apiv2pb.ListUsersResponse, error) { func (s *UserService) ListUsers(ctx context.Context, request *apiv2pb.ListUsersRequest) (*apiv2pb.ListUsersResponse, error) {
users, err := s.Store.ListUsers(ctx, &store.FindUser{}) users, err := s.Store.ListUsers(ctx, &store.FindUser{})
if err != nil { if err != nil {
return nil, status.Errorf(codes.Internal, "failed to list users: %v", err) return nil, status.Errorf(codes.Internal, "failed to list users: %v", err)