From 74aace40056395c9c6928176b73db7857b339c9d Mon Sep 17 00:00:00 2001 From: Ian Macartney Date: Thu, 12 Dec 2024 14:14:39 -0800 Subject: [PATCH] fix twilio --- test/convex/otp/TwilioSDK.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/convex/otp/TwilioSDK.ts b/test/convex/otp/TwilioSDK.ts index d681d1f..ac3536f 100644 --- a/test/convex/otp/TwilioSDK.ts +++ b/test/convex/otp/TwilioSDK.ts @@ -26,7 +26,7 @@ export const verify = internalAction({ console.error(status); throw new Error("Code could not be verified"); } - const { user } = await createAccount(ctx, { + const { account } = await createAccount(ctx, { provider: "twilio", account: { id: phone, @@ -36,7 +36,7 @@ export const verify = internalAction({ }, shouldLinkViaPhone: true, }); - return { userId: user._id }; + return { userId: account.userId }; }, });