Skip to content

Commit

Permalink
Merge pull request #267 from ungdev/dev
Browse files Browse the repository at this point in the history
merge Master
  • Loading branch information
Suboyyy authored Nov 28, 2024
2 parents 3b06c18 + ecf3654 commit 1347e25
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 1347e25

Please sign in to comment.