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

@@ -1,5 +1,5 @@
import { Field, ID, ArgsType } from '@nestjs/graphql';
import { ReqType } from '@prisma/client';
import { ReqType } from 'src/types/RequestTypes';
import { PaginationArgs } from 'src/types/input-types.args';
@ArgsType()
@@ -82,7 +82,7 @@ export class ImportUserCollectionsFromJSONArgs {
description: 'JSON string to import',
})
jsonString: string;
@Field({
@Field(() => ReqType, {
name: 'reqType',
description: 'Type of UserCollection',
})

View File

@@ -18,16 +18,12 @@ import { AuthUser } from 'src/types/AuthUser';
import * as E from 'fp-ts/Either';
import * as O from 'fp-ts/Option';
import { PubSubService } from 'src/pubsub/pubsub.service';
import {
Prisma,
User,
UserCollection,
ReqType as DBReqType,
} from '@prisma/client';
import { Prisma, UserCollection, ReqType as DBReqType } from '@prisma/client';
import { UserCollection as UserCollectionModel } from './user-collections.model';
import { ReqType } from 'src/types/RequestTypes';
import { isValidLength, stringToJson } from 'src/utils';
import { CollectionFolder } from 'src/types/CollectionFolder';
@Injectable()
export class UserCollectionService {
constructor(