Skip to content

Commit

Permalink
Merge branch 'dev' into feat/send-ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
Suboyyy authored Dec 2, 2024
2 parents 1b37953 + ecf3654 commit e4f6407
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/operations/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,16 @@ export const fetchOrgas = async (): Promise<Orga[]> => {
},
},
});
return orgas.map(formatOrga);
return orgas
.map((orga) => {
try {
return formatOrga(orga);
} catch (error) {
logger.error(`Error while formatting orga ${orga.id}`, error);
return null;
}
})
.filter((orga) => orga !== null);
};

export const createUser = async (user: {
Expand Down

0 comments on commit e4f6407

Please sign in to comment.