From c47bacda0de5b69c5200b506ab30dd913cc025bc Mon Sep 17 00:00:00 2001 From: BBQ <35603386+HoneyBBQ@users.noreply.github.com> Date: Thu, 27 Jun 2024 04:59:09 +0800 Subject: [PATCH] fix: Fix incorrect privilegekeyadd command --- server_cmds.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server_cmds.go b/server_cmds.go index d986225..c93cd16 100644 --- a/server_cmds.go +++ b/server_cmds.go @@ -368,7 +368,7 @@ func (s *ServerMethods) PrivilegeKeyAdd(ttype, id1, id2 int, options ...CmdArg) Token string }{} options = append(options, NewArg("tokentype", ttype), NewArg("tokenid1", id1), NewArg("tokenid2", id2)) - _, err := s.ExecCmd(NewCmd("privilegekeylist").WithArgs(options...).WithResponse(&t)) + _, err := s.ExecCmd(NewCmd("privilegekeyadd").WithArgs(options...).WithResponse(&t)) return t.Token, err }