File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import errorHandlerPlugin from "./plugins/errorHandler.js";
8
8
import { RunEnvironment , runEnvironments } from "./roles.js" ;
9
9
import { InternalServerError } from "./errors/index.js" ;
10
10
import eventsPlugin from "./routes/events.js" ;
11
- import cors from ' @fastify/cors'
11
+ import cors from " @fastify/cors" ;
12
12
13
13
const now = ( ) => Date . now ( ) ;
14
14
@@ -63,10 +63,10 @@ async function init() {
63
63
} ,
64
64
{ prefix : "/api/v1" } ,
65
65
) ;
66
- await app . register ( cors , {
67
- origin : ( process . env . ValidCorsOrigins || "*" ) . split ( ',' )
68
- } )
69
-
66
+ await app . register ( cors , {
67
+ origin : ( process . env . ValidCorsOrigins || "*" ) . split ( "," ) ,
68
+ } ) ;
69
+
70
70
return app ;
71
71
}
72
72
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ import {
16
16
17
17
const CONFIG_SECRET_NAME = "infra-events-api-config" as const ;
18
18
const GroupRoleMapping : Record < RunEnvironment , Record < string , AppRoles [ ] > > = {
19
- prod : {
19
+ prod : {
20
20
"48591dbc-cdcb-4544-9f63-e6b92b067e33" : [ AppRoles . MANAGER ] , // Infra Chairs
21
21
"ff49e948-4587-416b-8224-65147540d5fc" : [ AppRoles . MANAGER ] , // Officers
22
- "ad81254b-4eeb-4c96-8191-3acdce9194b1" : [ AppRoles . MANAGER ] // Exec
22
+ "ad81254b-4eeb-4c96-8191-3acdce9194b1" : [ AppRoles . MANAGER ] , // Exec
23
23
} ,
24
24
dev : {
25
25
"48591dbc-cdcb-4544-9f63-e6b92b067e33" : [ AppRoles . MANAGER ] , // Infra Chairs
You can’t perform that action at this time.
0 commit comments