egecankomur 84be9ec5e3 fix: auto-create tenant_settings when missing to prevent onboarding loop
- ensureSettings() creates a minimal settings row if one is missing for
  a team the user is already a member of, instead of returning null and
  letting the onboarding redirect fire
- resolveFirstValidTenantId() falls back to any membership when no team
  has settings yet, so new registrations without a completed onboarding
  still land on the correct tenant
- teams.get() is now fetched alongside listMemberships in a single
  Promise.all so the team name is available for the fallback row
2026-05-12 14:19:24 +03:00
S
Description
No description provided
5.4 MiB
Languages
TypeScript 99.4%
CSS 0.6%