|
|
@ -75,7 +75,9 @@ |
|
|
async function fetchSmtp() { |
|
|
async function fetchSmtp() { |
|
|
loading = true |
|
|
loading = true |
|
|
// fetch the configs for smtp |
|
|
// fetch the configs for smtp |
|
|
const smtpResponse = await api.get(`/api/global/configs/${ConfigTypes.SMTP}`) |
|
|
const smtpResponse = await api.get( |
|
|
|
|
|
`/api/global/configs/${ConfigTypes.SMTP}` |
|
|
|
|
|
) |
|
|
const smtpDoc = await smtpResponse.json() |
|
|
const smtpDoc = await smtpResponse.json() |
|
|
|
|
|
|
|
|
if (!smtpDoc._id) { |
|
|
if (!smtpDoc._id) { |
|
|
|