Skip to content

Commit

Permalink
Revert "try the like"
Browse files Browse the repository at this point in the history
This reverts commit 95995ee.
  • Loading branch information
tdeshong committed Mar 22, 2024
1 parent b7b422e commit 209748c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions user.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"fmt"
"net/http"
"strings"
)

const (
Expand Down Expand Up @@ -49,13 +50,13 @@ func (a *App) GetUserByIdentifier(identifier string) (*User, error) {
var errorText string
message := "failed to get Passage User By Identifier"
limit := 1
ilikeIdentifier := "like:(?i)" + identifier
lowerIdentifier := strings.ToLower(identifier)
res, err := a.client.ListPaginatedUsersWithResponse(
context.Background(),
a.ID,
&ListPaginatedUsersParams{
Limit: &limit,
Identifier: &ilikeIdentifier,
Identifier: &lowerIdentifier,
},
)

Expand Down

0 comments on commit 209748c

Please sign in to comment.