Skip to content

Commit

Permalink
more linting 😭
Browse files Browse the repository at this point in the history
  • Loading branch information
sritanmotati committed Feb 13, 2025
1 parent 77e0157 commit 695aa58
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion backend/health/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

class HealthView(View):
def get(self, request):

"""
Health check endpoint to confirm the backend is running.
---
Expand Down
8 changes: 4 additions & 4 deletions frontend/pages/health.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { GetServerSideProps } from 'next';
import { GetServerSideProps } from "next";

const HealthPage = () => {
return <div>OK</div>;
};

export const getServerSideProps: GetServerSideProps = async ({ req }) => {
const userAgent = req.headers['user-agent'] || '';
const userAgent = req.headers["user-agent"] || "";

if (userAgent !== 'service-status') {
if (userAgent !== "service-status") {
return {
redirect: {
destination: '/',
destination: "/",
permanent: false,
},
};
Expand Down
2 changes: 1 addition & 1 deletion frontend/utils/auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function withAuth<T>(getServerSidePropsFunc: GetServerSidePropsFunc<T>) {
return async (
ctx: GetServerSidePropsContext
): Promise<GetServerSidePropsResult<T & AuthProps>> => {
if (ctx.resolvedUrl === '/health') {
if (ctx.resolvedUrl === "/health") {
const wrapped = await getServerSidePropsFunc(ctx);
const casted = convertGetServerSidePropsResult(wrapped);

Expand Down

0 comments on commit 695aa58

Please sign in to comment.