Skip to content

Latest commit

 

History

History
40 lines (21 loc) · 886 Bytes

resolvers_Mutation_acceptAdmin.md

File metadata and controls

40 lines (21 loc) · 886 Bytes

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