Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Merge main into fix/otp-burn

Richie McIlroy88cae4fb5026
diff --cc packages/database/auth/drizzle-adapter.ts
index 882fd950b,810b6b75e..3d1b7c054
--- a/packages/database/auth/drizzle-adapter.ts
+++ b/packages/database/auth/drizzle-adapter.ts
@@@ -16,16 -16,8 +16,17 @@@ import
verificationTokens,
} from "../schema.ts";
import type { ValidatedSsoIdentity } from "./sso.ts";
+ import { provisionStripeCustomer } from "./stripe-customer.ts";
+const getAffectedRows = (result: unknown) => {
+ if (Array.isArray(result)) {
+ return (
+ (result[0] as { affectedRows?: number } | undefined)?.affectedRows ?? 0
+ );
+ }
+ return (result as { affectedRows?: number } | undefined)?.affectedRows ?? 0;
+};
+
type CreateUserData = Parameters<NonNullable<Adapter["createUser"]>>[0];
type LinkAccountData = Parameters<NonNullable<Adapter["linkAccount"]>>[0];
type UnlinkAccountData = Parameters<NonNullable<Adapter["unlinkAccount"]>>[0];