avatar: new upload + remove avatar, and placeholder with colour and initials

This commit is contained in:
Oliver Bryan
2026-01-03 11:25:39 +00:00
parent e62b12b1c3
commit 33da8bde85
10 changed files with 138 additions and 54 deletions

View File

@@ -22,7 +22,7 @@ export async function updateById(
updates: {
name?: string;
passwordHash?: string;
avatarURL?: string;
avatarURL?: string | null;
},
): Promise<UserRecord | undefined> {
const [user] = await db.update(User).set(updates).where(eq(User.id, id)).returning();