stripe frontend

This commit is contained in:
2026-01-28 18:33:30 +00:00
parent 6cf7e79f20
commit 98ff4014cc
10 changed files with 504 additions and 109 deletions

View File

@@ -29,8 +29,14 @@ export async function updateById(
passwordHash?: string;
avatarURL?: string | null;
iconPreference?: IconStyle;
plan?: string;
},
): Promise<UserRecord | undefined> {
const [user] = await db.update(User).set(updates).where(eq(User.id, id)).returning();
return user;
}
export async function updateUser(id: number, updates: { plan?: string }) {
const [user] = await db.update(User).set(updates).where(eq(User.id, id)).returning();
return user;
}