Skip to content

Commit

Permalink
fix(adapter): Closes #411
Browse files Browse the repository at this point in the history
  • Loading branch information
huangqing.zhu committed Nov 16, 2023
1 parent b76ed73 commit 5a6bb69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rueidiscompat/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -740,8 +740,8 @@ func (c *Compat) sort(command, key string, sort Sort) cmds.Arbitrary {
if sort.Offset != 0 || sort.Count != 0 {
cmd = cmd.Args("LIMIT", strconv.FormatInt(sort.Offset, 10), strconv.FormatInt(sort.Count, 10))
}
if len(sort.Get) > 0 {
cmd = cmd.Args("GET").Args(sort.Get...)
for _, get := range sort.Get {
cmd = cmd.Args("GET").Args(get)
}
switch order := strings.ToUpper(sort.Order); order {
case "ASC", "DESC":
Expand Down

0 comments on commit 5a6bb69

Please sign in to comment.