mirror of
https://github.com/hex248/sprint.git
synced 2026-02-07 18:23:03 +00:00
stripe frontend
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user