Skip to content

Commit

Permalink
Fixing lint check
Browse files Browse the repository at this point in the history
  • Loading branch information
aaryauchamkeri committed Feb 24, 2025
1 parent 4e8e9ba commit 67c4073
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion server/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<typeof EnvSchema>;
Expand Down
8 changes: 0 additions & 8 deletions server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { Context } from '@/lib/context';
import { env } from '@/env';
const app = new OpenAPIHono<Context>({ strict: false });
import configureOpenAPI from '@/lib/configure-openapi';
import { csrf } from 'hono/csrf';

app.use(pinoLogger());

Expand All @@ -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(
{
Expand Down
2 changes: 1 addition & 1 deletion server/src/lib/aws/iam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const stsClient: STSClient = new STSClient({
},
});

const initializeS3client = async () => {
const initializeS3client = async (): Promise<boolean> => {
try {
const input = new AssumeRoleCommand({
RoleArn: 'arn:aws:iam::588738592350:role/AcmApplicationServerRoleForLocal',
Expand Down

0 comments on commit 67c4073

Please sign in to comment.