diff --git a/src/resolvers/DocumentationResolvers.ts b/src/resolvers/DocumentationResolvers.ts index b3f2f918..69cd2a1c 100644 --- a/src/resolvers/DocumentationResolvers.ts +++ b/src/resolvers/DocumentationResolvers.ts @@ -10,15 +10,14 @@ const DocumentationResolvers = { }, Mutation: { async addDocumentation(_: any, args: any, context: any) { - console.log(args) const documentation = await Documentation.create(args) return documentation }, async updateDocumentation(_: any, args: any, context: any) { - const { id, title, description } = args + const { id, title, for: forUpdate, description } = args const documentation = await Documentation.findByIdAndUpdate( id, - { title, description }, + { title, description, for: forUpdate }, { new: true } ) if (!documentation) { diff --git a/src/resolvers/ticket.resolver.ts b/src/resolvers/ticket.resolver.ts index 798a8180..e25748ea 100644 --- a/src/resolvers/ticket.resolver.ts +++ b/src/resolvers/ticket.resolver.ts @@ -614,4 +614,4 @@ const resolvers = { }, } -export default resolvers \ No newline at end of file +export default resolvers diff --git a/src/utils/templates/eventInvitationTemplates.ts b/src/utils/templates/eventInvitationTemplates.ts index 7124d431..15414139 100644 --- a/src/utils/templates/eventInvitationTemplates.ts +++ b/src/utils/templates/eventInvitationTemplates.ts @@ -116,4 +116,4 @@ export function invitationCancellationTemplate(eventTitle: string): string { ` -} \ No newline at end of file +}