Skip to content

Commit

Permalink
fix-update-docs (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
Calebgisa72 authored Oct 18, 2024
1 parent a6fbfed commit 9ed6608
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/resolvers/DocumentationResolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/resolvers/ticket.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -614,4 +614,4 @@ const resolvers = {
},
}

export default resolvers
export default resolvers
2 changes: 1 addition & 1 deletion src/utils/templates/eventInvitationTemplates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@ export function invitationCancellationTemplate(eventTitle: string): string {
</tr>
</tbody>
</table>`
}
}

0 comments on commit 9ed6608

Please sign in to comment.