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) { if (image) {
let data = new FormData() let data = new FormData()
data.append("file", image) data.append("file", image)
await API.uploadOIDCLogo({ await API.uploadOIDCLogo(image.name, data)
name: image.name,
data,
})
} }
} }

View File

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