mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-29 18:36:34 -05:00
fix: add array of numbers support to list filter value types
This commit is contained in:
@@ -153,7 +153,7 @@ type listUsers = {
|
||||
/**
|
||||
* The value to filter by.
|
||||
*/
|
||||
filterValue?: string | number | boolean | string[] = "hello@example.com"
|
||||
filterValue?: string | number | boolean | string[] | number[] = "hello@example.com"
|
||||
/**
|
||||
* The operator to use for the filter.
|
||||
*/
|
||||
|
||||
@@ -1094,7 +1094,7 @@ type listMembers = {
|
||||
/**
|
||||
* The value to filter by.
|
||||
*/
|
||||
filterValue?: string | number | boolean | string[] = "value"
|
||||
filterValue?: string | number | boolean | string[] | number[] = "value"
|
||||
}
|
||||
```
|
||||
</APIMethod>
|
||||
|
||||
@@ -576,6 +576,7 @@ const listUsersQuerySchema = z.object({
|
||||
.or(z.number())
|
||||
.or(z.boolean())
|
||||
.or(z.array(z.string()))
|
||||
.or(z.array(z.number()))
|
||||
.optional(),
|
||||
filterOperator: z
|
||||
.enum(whereOperators)
|
||||
|
||||
@@ -881,6 +881,7 @@ export const listMembers = <O extends OrganizationOptions>(options: O) =>
|
||||
.or(z.number())
|
||||
.or(z.boolean())
|
||||
.or(z.array(z.string()))
|
||||
.or(z.array(z.number()))
|
||||
.optional(),
|
||||
filterOperator: z
|
||||
.enum(whereOperators)
|
||||
|
||||
Reference in New Issue
Block a user