Skip to content

Commit abb96d3

Browse files
committed
fix: remove workshop based organization from community listing
1 parent 0cfcab8 commit abb96d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

angular-hub/src/server/routes/v1/communities/index.get.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { CommunityListSchema } from '../../../schemas/community.schema';
66
export default defineEventHandler(() => {
77
try {
88
parse(CommunityListSchema, communities);
9-
return communities;
9+
return communities.filter((community) => community.type !== 'workshop');
1010
} catch (error) {
1111
throw new Error('Invalid community data format');
1212
}

0 commit comments

Comments
 (0)