chore: npm run lint:fix

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Louis Chmn <louis@chmn.me>
This commit is contained in:
Côme Chilliet 2025-10-07 15:56:08 +02:00 committed by Louis Chmn
parent f9abfe0473
commit 00349e674d
2 changed files with 3 additions and 5 deletions

View file

@ -118,9 +118,7 @@ export async function deleteConfig(configId: string): Promise<boolean> {
export async function testConfiguration(configId: string) {
const params = new FormData()
const response = await axios.post(
generateOcsUrl('apps/user_ldap/api/v1/config/{configId}/test', { configId }),
) as AxiosResponse<OCSResponse<{ success: boolean, message: string }>>
const response = await axios.post(generateOcsUrl('apps/user_ldap/api/v1/config/{configId}/test', { configId })) as AxiosResponse<OCSResponse<{ success: boolean, message: string }>>
logger.debug(`Configuration is ${response.data.ocs.data.success ? 'valide' : 'invalide'}`, { configId, params, response })
@ -143,7 +141,7 @@ export async function clearMapping(subject: 'user' | 'group') {
try {
const response = await axios.post(
generateOcsUrl('apps/user_ldap/api/v1/wizard/clearMappings'),
{ subject: subject },
{ subject },
) as AxiosResponse<OCSResponse>
logger.debug('Cleared mapping', { subject, params, response })

View file

@ -11,7 +11,7 @@ import _ from 'underscore'
* @class OC.Files.FileInfo
* @classdesc File information
*
* @param {Object} data file data, see attributes for details
* @param {object} data file data, see attributes for details
*
* @since 8.2
*/