File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ const environmentConfig: EnvironmentConfigType = {
47
47
ValidCorsOrigins : [
48
48
"http://localhost:3000" ,
49
49
"http://localhost:5173" ,
50
+ "http://localhost:5174" ,
50
51
"https://merch-pwa.pages.dev" ,
51
52
"https://manage.qa.acmuiuc.org" ,
52
53
/ ^ h t t p s : \/ \/ (?: .* \. ) ? a c m u i u c \. p a g e s \. d e v $ / ,
Original file line number Diff line number Diff line change @@ -32,9 +32,11 @@ export const updateDiscord = async (
32
32
}
33
33
34
34
const client = new Client ( { intents : [ GatewayIntentBits . Guilds ] } ) ;
35
+ const secretApiConfig = ( await getSecretValue ( "infra-core-api-config" ) ) || { } ;
36
+
35
37
client . once ( Events . ClientReady , async ( readyClient : Client < true > ) => {
36
38
console . log ( `Logged in as ${ readyClient . user . tag } ` ) ;
37
- const guildID = await getSecretValue ( "discord_guild_id" ) ;
39
+ const guildID = secretApiConfig [ "discord_guild_id" ] ;
38
40
const guild = await client . guilds . fetch ( guildID ?. toString ( ) || "" ) ;
39
41
const discordEvents = await guild . scheduledEvents . fetch ( ) ;
40
42
const snowflakeMeetingLookup = discordEvents . reduce (
@@ -105,6 +107,6 @@ export const updateDiscord = async (
105
107
await client . destroy ( ) ;
106
108
} ) ;
107
109
108
- const token = await getSecretValue ( "discord_bot_token" ) ;
110
+ const token = secretApiConfig [ "discord_bot_token" ] ;
109
111
client . login ( token ?. toString ( ) ) ;
110
112
} ;
You can’t perform that action at this time.
0 commit comments