Flatten some config endpoint params

This commit is contained in:
Andrew Kingston 2024-11-29 14:36:16 +00:00
parent 6d67a10b34
commit 6d50f70258
No known key found for this signature in database
2 changed files with 2 additions and 8 deletions

View File

@ -140,10 +140,7 @@
if (image) {
let data = new FormData()
data.append("file", image)
await API.uploadOIDCLogo({
name: image.name,
data,
})
await API.uploadOIDCLogo(image.name, data)
}
}

View File

@ -69,10 +69,7 @@
async function deleteSmtp() {
// Delete the SMTP config
try {
await API.deleteConfig({
id: smtpConfig._id,
rev: smtpConfig._rev,
})
await API.deleteConfig(smtpConfig._id, smtpConfig._rev)
smtpConfig = {
type: ConfigTypes.SMTP,
config: {