Run linter, fix import error

This commit is contained in:
Tuan Dang
2023-07-21 15:01:28 +07:00
parent 5ee65359bf
commit 44108621b4
16 changed files with 36 additions and 22 deletions
+1 -1
View File
@@ -5,13 +5,13 @@ export * from "./integrationAuth";
export * from "./integrations";
export * from "./keys";
export * from "./organization";
export * from "./ssoConfig";
export * from "./secretFolders";
export * from "./secretImports";
export * from "./secrets";
export * from "./secretSnapshots";
export * from "./serviceAccounts";
export * from "./serviceTokens";
export * from "./ssoConfig";
export * from "./subscriptions";
export * from "./tags";
export * from "./users";
@@ -1,5 +1,7 @@
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import { apiRequest } from "@app/config/request";
import {
BillingDetails,
Invoice,
+1 -1
View File
@@ -1,5 +1,5 @@
export {
useGetSSOConfig,
useCreateSSOConfig,
useGetSSOConfig,
useUpdateSSOConfig
} from "./queries";
+3 -2
View File
@@ -1,4 +1,5 @@
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import { apiRequest } from "@app/config/request";
const ssoConfigKeys = {
@@ -40,7 +41,7 @@ export const useCreateSSOConfig = () => {
audience: string;
}) => {
const { data } = await apiRequest.post(
`/api/v1/sso/config`,
"/api/v1/sso/config",
{
organizationId,
authProvider,
@@ -81,7 +82,7 @@ export const useUpdateSSOConfig = () => {
audience?: string;
}) => {
const { data } = await apiRequest.patch(
`/api/v1/sso/config`,
"/api/v1/sso/config",
{
organizationId,
...(authProvider !== undefined ? { authProvider } : {}),