fix: enum type fixes in SDL (HBE-183) (#55)

* fix: added reqType typed in sdl

* fix: updateUserSession type
This commit is contained in:
Mir Arif Hasan
2023-03-28 17:46:41 +06:00
committed by GitHub
parent 9d6a7f709c
commit ccdce37f88
15 changed files with 23 additions and 26 deletions

View File

@@ -2,12 +2,12 @@ import { UserHistoryService } from './user-history.service';
import { PrismaService } from '../prisma/prisma.service';
import { PubSubService } from '../pubsub/pubsub.service';
import { mockDeep, mockReset } from 'jest-mock-extended';
import { ReqType, UserHistory } from './user-history.model';
import { UserHistory } from './user-history.model';
import { ReqType } from 'src/types/RequestTypes';
import {
USER_HISTORY_INVALID_REQ_TYPE,
USER_HISTORY_NOT_FOUND,
} from '../errors';
import { ReqType as DBReqType } from '@prisma/client';
const mockPrisma = mockDeep<PrismaService>();
const mockPubSub = mockDeep<PubSubService>();