From e5ce2f7dec94efc7d9b36f844cfb13aa328ae73b Mon Sep 17 00:00:00 2001 From: Monet Lee Date: Wed, 12 Jun 2024 17:35:09 +0800 Subject: [PATCH] fix: fix uncorrect args. --- pkg/rpclient/chat/admin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/rpclient/chat/admin.go b/pkg/rpclient/chat/admin.go index 12a4a583..e65d8c1a 100644 --- a/pkg/rpclient/chat/admin.go +++ b/pkg/rpclient/chat/admin.go @@ -104,6 +104,6 @@ func (o *AdminClient) GetDefaultGroupID(ctx context.Context) ([]string, error) { } func (o *AdminClient) InvalidateToken(ctx context.Context, userID string) error { - _, err := o.client.InvalidateToken(ctx, &admin.InvalidateTokenReq{}) + _, err := o.client.InvalidateToken(ctx, &admin.InvalidateTokenReq{UserID: userID}) return err }