Flatten some config endpoint params
This commit is contained in:
parent
6d67a10b34
commit
6d50f70258
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue