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