chore: format

This commit is contained in:
Timothy J. Baek
2024-11-05 17:41:24 -08:00
parent 2d943e784b
commit 040449be01
48 changed files with 3158 additions and 437 deletions

View File

@@ -150,7 +150,7 @@ export const getLdapConfig = async (token: string = '') => {
headers: {
'Content-Type': 'application/json',
...(token && { authorization: `Bearer ${token}` })
},
}
})
.then(async (res) => {
if (!res.ok) throw await res.json();
@@ -167,7 +167,7 @@ export const getLdapConfig = async (token: string = '') => {
}
return res;
}
};
export const updateLdapConfig = async (token: string = '', enable_ldap: boolean) => {
let error = null;
@@ -197,7 +197,7 @@ export const updateLdapConfig = async (token: string = '', enable_ldap: boolean)
}
return res;
}
};
export const getLdapServer = async (token: string = '') => {
let error = null;
@@ -207,7 +207,7 @@ export const getLdapServer = async (token: string = '') => {
headers: {
'Content-Type': 'application/json',
...(token && { authorization: `Bearer ${token}` })
},
}
})
.then(async (res) => {
if (!res.ok) throw await res.json();
@@ -224,7 +224,7 @@ export const getLdapServer = async (token: string = '') => {
}
return res;
}
};
export const updateLdapServer = async (token: string = '', body: object) => {
let error = null;