Automatically push personalOrg into list

This commit is contained in:
David Corbitt
2023-08-08 17:20:20 -07:00
parent ded86cba08
commit 3424aa36ba

View File

@@ -35,7 +35,8 @@ export const organizationsRouter = createTRPCRouter({
if (!organizations.length) {
// TODO: We should move this to a separate endpoint that is called on sign up
await userOrg(userId);
const personalOrg = await userOrg(userId);
organizations.push(personalOrg);
}
return organizations;