fix: api call

This commit is contained in:
Arman
2023-08-09 11:39:56 +02:00
parent 0fa7a1d462
commit f2ed6d12b0
@@ -31,22 +31,15 @@
});
async function updateSmtp() {
const path = '/projects/' + $project.$id + '/smtp';
const params = {
enabled,
sender,
host,
port,
username,
password
};
try {
await sdk.forConsole.client.call(
'PATCH',
new URL(sdk.forConsole.client.config.endpoint + path),
{ 'content-type': 'application/json' },
params
await sdk.forConsole.projects.updateSmtpConfiguration(
$project.$id,
enabled,
sender,
host,
port,
username,
password
);
invalidate(Dependencies.PROJECT);