Skip to main content

updateFundraisingCampaignPledge

talawa-apiDocs


talawa-api / resolvers/Mutation/updateFundCampaignPledge / updateFundraisingCampaignPledge

Variable: updateFundraisingCampaignPledge

> const updateFundraisingCampaignPledge: MutationResolvers["updateFundraisingCampaignPledge"]

This function enables to update a fundraising campaign pledge.

Param

parent of current request

Param

payload provided with the request

Param

context of entire application

Remarks

The following checks are done:

  1. If the user exists.
  2. If the FundraisingCampaignPledge exists.
  3. If the user has made the pledge.
  4. If the start date is valid.
  5. If the end date is valid.

Returns

Updated campaign pledge.

Defined in

src/resolvers/Mutation/updateFundCampaignPledge.ts:32