Skip to content

Commit 39d0d57

Browse files
committed
fix linting errors
1 parent 7130fe9 commit 39d0d57

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import errorHandlerPlugin from "./plugins/errorHandler.js";
88
import { RunEnvironment, runEnvironments } from "./roles.js";
99
import { InternalServerError } from "./errors/index.js";
1010
import eventsPlugin from "./routes/events.js";
11-
import cors from '@fastify/cors'
11+
import cors from "@fastify/cors";
1212

1313
const now = () => Date.now();
1414

@@ -63,10 +63,10 @@ async function init() {
6363
},
6464
{ prefix: "/api/v1" },
6565
);
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+
7070
return app;
7171
}
7272

src/plugins/auth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ import {
1616

1717
const CONFIG_SECRET_NAME = "infra-events-api-config" as const;
1818
const GroupRoleMapping: Record<RunEnvironment, Record<string, AppRoles[]>> = {
19-
prod: {
19+
prod: {
2020
"48591dbc-cdcb-4544-9f63-e6b92b067e33": [AppRoles.MANAGER], // Infra Chairs
2121
"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
2323
},
2424
dev: {
2525
"48591dbc-cdcb-4544-9f63-e6b92b067e33": [AppRoles.MANAGER], // Infra Chairs

0 commit comments

Comments
 (0)