Automatically push personalOrg into list
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user