talawa-api / Exports / resolvers/Mutation/acceptAdmin
• Const
acceptAdmin: MutationResolvers
["acceptAdmin"
]
This function accepts the admin request sent by a user.
Param
parent of current request
Param
payload provided with the request
Param
context of entire application
Remarks
THe following checks are done:
- Whether the user exists
- Whether the user accepting the admin request is a superadmin or not.