fix: enum type fixes in SDL (HBE-183) (#55)
* fix: added reqType typed in sdl * fix: updateUserSession type
This commit is contained in:
@@ -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',
|
||||
})
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user