Skip to content

Commit

Permalink
fix: api call
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmanNik committed Aug 9, 2023
1 parent 0fa7a1d commit f2ed6d1
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions src/routes/console/project-[project]/settings/smtp/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f2ed6d1

Please sign in to comment.