From bd31c19a150368aaea2b520334ee2720921cae0d Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 21 Aug 2023 01:55:16 +0800 Subject: [PATCH] chore: fix typo --- api/v2/user_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v2/user_service.go b/api/v2/user_service.go index c6a2dbb..c0306cb 100644 --- a/api/v2/user_service.go +++ b/api/v2/user_service.go @@ -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{}) if err != nil { return nil, status.Errorf(codes.Internal, "failed to list users: %v", err)