fix: getting value instead of specific enum value

This commit is contained in:
Binyamin Yawitz
2024-10-02 13:31:49 -04:00
parent ab67b7f29d
commit 5786f3a4e3
@@ -65,6 +65,13 @@
username = undefined;
password = undefined;
}
let secureProtocol = undefined;
if (secure) {
secureProtocol = secure as SMTPSecure
}
await sdk.forConsole.projects.updateSmtp(
$project.$id,
enabled,
@@ -75,7 +82,7 @@
port ? port : undefined,
username ? username : undefined,
password ? password : undefined,
secure ? SMTPSecure.Tls : undefined
secureProtocol
);
invalidate(Dependencies.PROJECT);