fix: platform library export-verifyEmailCodeUnAuthenticated (#23814)
* fix apiv2 * fix import
This commit is contained in:
1 parent
639940d1bf
commit
a7fecaf578
6 files changed
+10
-11
No files matched your search
@@ -38,7 +38,7 @@
|
||||
"@axiomhq/winston": "^1.2.0",
|
||||
"@calcom/platform-constants": "*",
|
||||
"@calcom/platform-enums": "*",
|
||||
"@calcom/platform-libraries": "npm:@calcom/[email protected]6",
|
||||
"@calcom/platform-libraries": "npm:@calcom/[email protected]8",
|
||||
"@calcom/platform-types": "*",
|
||||
"@calcom/platform-utils": "*",
|
||||
"@calcom/prisma": "*",
|
||||
|
||||
@@ -27,7 +27,7 @@ export class VerificationAtomsService {
|
||||
|
||||
async verifyEmailCodeUnAuthenticated(input: VerifyEmailCodeInput) {
|
||||
try {
|
||||
return await verifyCodeUnAuthenticated(input);
|
||||
return await verifyCodeUnAuthenticated(input.email, input.code);
|
||||
} catch (error) {
|
||||
if (error instanceof Error) {
|
||||
if (error.message === "invalid_code") {
|
||||
|
||||
Reference in new issue
Block a user