mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
fix(core): fix roles count (#2963)
This commit is contained in:
parent
2722704a2d
commit
448599e8d4
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ export const defaultUserSearch = { matches: [], isCaseSensitive: false, joint: S
|
||||||
export const createRolesQueries = (pool: CommonQueryMethods) => {
|
export const createRolesQueries = (pool: CommonQueryMethods) => {
|
||||||
const countRoles = async (
|
const countRoles = async (
|
||||||
search: Search = defaultUserSearch,
|
search: Search = defaultUserSearch,
|
||||||
{ excludeRoleIds = [], roleIds = [] }: { excludeRoleIds?: string[]; roleIds?: string[] } = {}
|
{ excludeRoleIds = [], roleIds }: { excludeRoleIds?: string[]; roleIds?: string[] } = {}
|
||||||
) =>
|
) =>
|
||||||
pool.one<{ count: number }>(sql`
|
pool.one<{ count: number }>(sql`
|
||||||
select count(*)
|
select count(*)
|
||||||
|
|
Loading…
Reference in a new issue