From 813db4a9859f880539279b57723f849b69d26d8c Mon Sep 17 00:00:00 2001 From: Balu Babu Date: Thu, 19 Jan 2023 04:34:35 +0530 Subject: [PATCH] feat: added route to log users out --- packages/hoppscotch-backend/src/user/user.service.ts | 1 - packages/hoppscotch-backend/src/utils.ts | 5 ----- 2 files changed, 6 deletions(-) diff --git a/packages/hoppscotch-backend/src/user/user.service.ts b/packages/hoppscotch-backend/src/user/user.service.ts index af5b38101..5662985ea 100644 --- a/packages/hoppscotch-backend/src/user/user.service.ts +++ b/packages/hoppscotch-backend/src/user/user.service.ts @@ -2,7 +2,6 @@ import { Injectable } from '@nestjs/common'; import { PrismaService } from 'src/prisma/prisma.service'; import * as O from 'fp-ts/Option'; import { AuthUser, SSOProviderProfile } from 'src/types/AuthUser'; -import { checkNullability } from 'src/utils'; @Injectable() export class UserService { diff --git a/packages/hoppscotch-backend/src/utils.ts b/packages/hoppscotch-backend/src/utils.ts index 3b2224d9d..93ee6d44b 100644 --- a/packages/hoppscotch-backend/src/utils.ts +++ b/packages/hoppscotch-backend/src/utils.ts @@ -160,8 +160,3 @@ export const authCookieHandler = ( res.status(HttpStatus.OK).redirect('http://localhost:3170/graphql'); } else res.status(HttpStatus.OK).send(); }; - -export const checkNullability = (data: string | undefined | null) => { - if (!data) return null; - return data; -};