Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
devksingh4 committed Aug 6, 2024
1 parent 7130fe9 commit 39d0d57
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import errorHandlerPlugin from "./plugins/errorHandler.js";
import { RunEnvironment, runEnvironments } from "./roles.js";
import { InternalServerError } from "./errors/index.js";
import eventsPlugin from "./routes/events.js";
import cors from '@fastify/cors'
import cors from "@fastify/cors";

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

Expand Down Expand Up @@ -63,10 +63,10 @@ async function init() {
},
{ prefix: "/api/v1" },
);
await app.register(cors, {
origin: (process.env.ValidCorsOrigins || "*").split(',')
})
await app.register(cors, {
origin: (process.env.ValidCorsOrigins || "*").split(","),
});

return app;
}

Expand Down
4 changes: 2 additions & 2 deletions src/plugins/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ import {

const CONFIG_SECRET_NAME = "infra-events-api-config" as const;
const GroupRoleMapping: Record<RunEnvironment, Record<string, AppRoles[]>> = {
prod: {
prod: {
"48591dbc-cdcb-4544-9f63-e6b92b067e33": [AppRoles.MANAGER], // Infra Chairs
"ff49e948-4587-416b-8224-65147540d5fc": [AppRoles.MANAGER], // Officers
"ad81254b-4eeb-4c96-8191-3acdce9194b1": [AppRoles.MANAGER] // Exec
"ad81254b-4eeb-4c96-8191-3acdce9194b1": [AppRoles.MANAGER], // Exec
},
dev: {
"48591dbc-cdcb-4544-9f63-e6b92b067e33": [AppRoles.MANAGER], // Infra Chairs
Expand Down

0 comments on commit 39d0d57

Please sign in to comment.