Return type of adminRemoveGroup
Mutation Resolver should be InterfaceGroupChat
and not InterfaceMessage
#1307
Labels
adminRemoveGroup
Mutation Resolver should be InterfaceGroupChat
and not InterfaceMessage
#1307
Describe the bug
The return type of
adminRemoveGroup
Mutation Resolver currently isInterfaceMessage
. This function enables an admin to remove a group and returns the deleted GroupChat. Thus it should have a return type ofInterfaceGroupChat
. We are currently using@ts-ignore
to disable this warning message.To Reproduce
Steps to reproduce the behavior:
src\resolvers\Mutation\adminRemoveGroup.ts
// @ts-ignore
lineExpected behavior
This error should be resolved
Actual behavior
The following error shows up -
Screenshots
The error thrown is as follows:-
Potential internship candidates
Please read this if you are planning to apply for a Palisadoes Foundation internship PalisadoesFoundation/talawa#359
The text was updated successfully, but these errors were encountered: