fix: Unneeded object keys in API response
This commit is contained in:
@ -24,7 +24,12 @@ function filterProviders(team) {
|
||||
!team ||
|
||||
find(team.authenticationProviders, { name: provider.id, enabled: true })
|
||||
);
|
||||
});
|
||||
})
|
||||
.map((provider) => ({
|
||||
id: provider.id,
|
||||
name: provider.name,
|
||||
authUrl: provider.authUrl,
|
||||
}));
|
||||
}
|
||||
|
||||
router.post("auth.config", async (ctx) => {
|
||||
|
Reference in New Issue
Block a user