From 67c4073d5f884795112e5d41d67aceeda7f80dee Mon Sep 17 00:00:00 2001 From: Aarya Chamkeri Date: Mon, 24 Feb 2025 14:37:45 -0800 Subject: [PATCH] Fixing lint check --- server/src/env.ts | 2 +- server/src/index.ts | 8 -------- server/src/lib/aws/iam.ts | 2 +- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/server/src/env.ts b/server/src/env.ts index 665dda5..d91af88 100644 --- a/server/src/env.ts +++ b/server/src/env.ts @@ -14,7 +14,7 @@ const EnvSchema = z.object({ GOOGLE_CLIENT_SECRET: z.string().default(''), GOOGLE_REDIRECT_URI: z.string().default(''), ACCESS_KEY_ID: z.string().default(''), - SECRET_ACCESS_KEY: z.string().default('') + SECRET_ACCESS_KEY: z.string().default(''), }); export type Env = z.infer; diff --git a/server/src/index.ts b/server/src/index.ts index 10f7492..af13f23 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -8,7 +8,6 @@ import { Context } from '@/lib/context'; import { env } from '@/env'; const app = new OpenAPIHono({ strict: false }); import configureOpenAPI from '@/lib/configure-openapi'; -import { csrf } from 'hono/csrf'; app.use(pinoLogger()); @@ -26,13 +25,6 @@ app.use('/*', cors({ credentials: true, })); -// app.use('/*', async (c, next) => { -// if (c.req.method !== 'OPTIONS') { -// return csrf()(c, next); -// } -// return next(); -// }); - app.get('/', c => c.json( { diff --git a/server/src/lib/aws/iam.ts b/server/src/lib/aws/iam.ts index 410c9a0..509a45a 100644 --- a/server/src/lib/aws/iam.ts +++ b/server/src/lib/aws/iam.ts @@ -12,7 +12,7 @@ const stsClient: STSClient = new STSClient({ }, }); -const initializeS3client = async () => { +const initializeS3client = async (): Promise => { try { const input = new AssumeRoleCommand({ RoleArn: 'arn:aws:iam::588738592350:role/AcmApplicationServerRoleForLocal',