Merge pull request #15344 from Budibase/fix/user-fetch
Fix wrong conversion for UserFetch
This commit is contained in:
commit
9166d279c6
|
@ -2,11 +2,7 @@ import { get } from "svelte/store"
|
||||||
import DataFetch, { DataFetchParams } from "./DataFetch"
|
import DataFetch, { DataFetchParams } from "./DataFetch"
|
||||||
import { TableNames } from "../constants"
|
import { TableNames } from "../constants"
|
||||||
import { utils } from "@budibase/shared-core"
|
import { utils } from "@budibase/shared-core"
|
||||||
import {
|
import { SearchFilters, SearchUsersRequest } from "@budibase/types"
|
||||||
BasicOperator,
|
|
||||||
SearchFilters,
|
|
||||||
SearchUsersRequest,
|
|
||||||
} from "@budibase/types"
|
|
||||||
|
|
||||||
interface UserFetchQuery {
|
interface UserFetchQuery {
|
||||||
appId: string
|
appId: string
|
||||||
|
@ -56,7 +52,7 @@ export default class UserFetch extends DataFetch<
|
||||||
|
|
||||||
const finalQuery: SearchFilters = utils.isSupportedUserSearch(rest)
|
const finalQuery: SearchFilters = utils.isSupportedUserSearch(rest)
|
||||||
? rest
|
? rest
|
||||||
: { [BasicOperator.EMPTY]: { email: null } }
|
: {}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const opts: SearchUsersRequest = {
|
const opts: SearchUsersRequest = {
|
||||||
|
|
Loading…
Reference in New Issue