talawa-api / Exports / resolvers/Mutation/updateFundraisingCampaign
Module: resolvers/Mutation/updateFundraisingCampaign
Table of contents
Variables
Variables
updateFundraisingCampaign
• Const
updateFundraisingCampaign: MutationResolvers
["updateFundraisingCampaign"
]
This function enables to update a fundraising campaign.
Param
parent of current request
Param
payload provided with the request
Param
context of entire application
Remarks
The following checks are done:
- If the user exists.
- If the FundraisingCampaign exists.
- If the user is authorized to update the fundraising campaign.
- If the fundraising campaign already exists with the same name.
- If the start date is valid.
- If the end date is valid.