fix: enum type fixes in SDL (HBE-183) (#55)
* fix: added reqType typed in sdl * fix: updateUserSession type
This commit is contained in:
@@ -2,7 +2,6 @@ import {
|
||||
ObjectType,
|
||||
ID,
|
||||
Field,
|
||||
InputType,
|
||||
registerEnumType,
|
||||
} from '@nestjs/graphql';
|
||||
|
||||
|
||||
@@ -46,6 +46,7 @@ export class UserResolver {
|
||||
@Args({
|
||||
name: 'sessionType',
|
||||
description: 'Type of the session',
|
||||
type: () => SessionType,
|
||||
})
|
||||
sessionType: SessionType,
|
||||
): Promise<User> {
|
||||
|
||||
@@ -8,7 +8,7 @@ import * as T from 'fp-ts/Task';
|
||||
import * as A from 'fp-ts/Array';
|
||||
import { pipe, constVoid } from 'fp-ts/function';
|
||||
import { AuthUser } from 'src/types/AuthUser';
|
||||
import { USER_NOT_FOUND, USERS_NOT_FOUND } from 'src/errors';
|
||||
import { USER_NOT_FOUND } from 'src/errors';
|
||||
import { SessionType, User } from './user.model';
|
||||
import { USER_UPDATE_FAILED } from 'src/errors';
|
||||
import { PubSubService } from 'src/pubsub/pubsub.service';
|
||||
|
||||
Reference in New Issue
Block a user