Skip to main content

talawa-api / Exports / resolvers/Mutation/acceptAdmin

Module: resolvers/Mutation/acceptAdmin

Table of contents

Variables

Variables

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:

  1. Whether the user exists
  2. Whether the user accepting the admin request is a superadmin or not.

Defined in

src/resolvers/Mutation/acceptAdmin.ts:15