File tree 2 files changed +30
-1
lines changed
server/routes/v1/communities
2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 1510
1510
"linkedin" : null ,
1511
1511
"callForPapers" : null ,
1512
1512
"events" : []
1513
+ },
1514
+ {
1515
+ "name" : " GDG Warszawa" ,
1516
+ "type" : " other" ,
1517
+ "location" : " Warsaw, Poland" ,
1518
+ "url" : " https://www.linkedin.com/company/gdg-warszawa/" ,
1519
+ "mediaChannel" : null ,
1520
+ "logo" : " assets/logos/official-logo.webp" ,
1521
+ "twitter" : null ,
1522
+ "linkedin" : null ,
1523
+ "callForPapers" : null ,
1524
+ "events" : [
1525
+ {
1526
+ "name" : " Angular Warsaw Jam #1" ,
1527
+ "type" : " conference" ,
1528
+ "location" : " Warsaw, Poland" ,
1529
+ "date" : " 2024-09-06" ,
1530
+ "language" : " English" ,
1531
+ "isFree" : true ,
1532
+ "isRemote" : false ,
1533
+ "isOnsite" : true ,
1534
+ "callForPapers" : " https://docs.google.com/forms/d/e/1FAIpQLSeGYwxyEmE2j82ntJXkPQpUBHWOu3Lf_vndLilP6Y0ofxNwUA/viewform" ,
1535
+ "callForPapersDueDate" : " 2024-08-20" ,
1536
+ "url" : " https://www.linkedin.com/company/gdg-warszawa/"
1537
+ }
1538
+ ]
1513
1539
}
1514
1540
]
Original file line number Diff line number Diff line change @@ -6,7 +6,10 @@ import { CommunityListSchema } from '../../../schemas/community.schema';
6
6
export default defineEventHandler ( ( ) => {
7
7
try {
8
8
parse ( CommunityListSchema , communities ) ;
9
- return communities . filter ( ( community ) => community . type !== 'workshop' ) ;
9
+ return communities . filter (
10
+ ( community ) =>
11
+ community . type !== 'workshop' && community . type !== 'other' ,
12
+ ) ;
10
13
} catch ( error ) {
11
14
throw new Error ( 'Invalid community data format' ) ;
12
15
}
You can’t perform that action at this time.
0 commit comments