User card (#3213)
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run

This commit is contained in:
Kalle
2026-07-05 08:28:42 +03:00
committed by GitHub
parent f25a2e410c
commit a4dfd82141
146 changed files with 4049 additions and 1078 deletions

View File

@@ -1140,6 +1140,23 @@ export function updateOwnProfile(args: UpdateProfileArgs) {
});
}
/** Bulk-sets each user's latest LUTI division. Used by the `ComputeLutiDivs` routine. */
export function updateManyDivs(
updates: Array<{ userId: number; div: string }>,
) {
if (updates.length === 0) return;
return db.transaction().execute(async (trx) => {
for (const { userId, div } of updates) {
await trx
.updateTable("User")
.set({ div })
.where("id", "=", userId)
.execute();
}
});
}
export function updateOwnCustomTheme(css: CustomTheme | null) {
return db
.updateTable("User")