@@ -14,6 +14,7 @@ import createCalendarSchema from './remotes/calendar';
1414import createLabsSchema from './remotes/labs' ;
1515import createAdvisorsSchema from './remotes/advisors' ;
1616import createTwitchSchema from './remotes/twitch' ;
17+ import createEmailSchema from './remotes/email' ;
1718import createGeoSchema from './remotes/geo' ;
1819import createClearSchema from "./remotes/clear" ;
1920import createAccountSchema from './remotes/account' ;
@@ -24,7 +25,7 @@ const port = process.env.PORT || 4000;
2425
2526async function buildSchema ( ) {
2627 console . log ( 'Fetching sub-schemas...' ) ;
27- const [ blog , showYourWork , showcase , calendar , labs , advisors , clear , cms , account , geo , twitch , github ] =
28+ const [ blog , showYourWork , showcase , calendar , labs , advisors , clear , cms , account , geo , email , twitch , github ] =
2829 await Promise . all ( [
2930 await createWordpressSchema ( process . env . WORDPRESS_URL || 'https://wp.codeday.org/graphql' ) ,
3031 await createDiscordPostsSchema ( process . env . SHOWYOURWORK_URL || 'http://discord-posts.codeday.cloud' ) ,
@@ -42,6 +43,7 @@ async function buildSchema() {
4243 process . env . MAXMIND_ACCOUNT ,
4344 process . env . MAXMIND_KEY
4445 ) ,
46+ await createEmailSchema ( ) ,
4547 await createTwitchSchema (
4648 process . env . TWITCH_CHANNEL ,
4749 process . env . TWITCH_CLIENT_ID ,
@@ -60,6 +62,7 @@ async function buildSchema() {
6062 showYourWork,
6163 showcase,
6264 calendar,
65+ email,
6366 twitch,
6467 labs,
6568 advisors,
0 commit comments