From c3b288dbc9b2bbd0aa214aa2aa5c91a644b919af Mon Sep 17 00:00:00 2001 From: Brianna Cerkiewicz Date: Fri, 21 Jul 2023 11:08:23 -0700 Subject: [PATCH] chore: spec work --- app/server/middleware/attachmentDeleteRouter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/server/middleware/attachmentDeleteRouter.ts b/app/server/middleware/attachmentDeleteRouter.ts index 32092b2dc9..414983f290 100644 --- a/app/server/middleware/attachmentDeleteRouter.ts +++ b/app/server/middleware/attachmentDeleteRouter.ts @@ -16,7 +16,7 @@ const discardProjectAttachmentFormChangeMutation = `mutation discardProjectAttac $input: DiscardProjectAttachmentFormChangeInput! ) { discardProjectAttachmentFormChange(input: $input) { - formChanges { + formChange { id } } @@ -54,7 +54,7 @@ export const handleDelete = async (req, res, next) => { req.body.variables, req ); - // brianna this isn't working since change to the discard mutation + // brianna this isn't working since change to the discard mutation--I think this middleware isn't actually transactional. If this doesn't work the next mutation still fires console.log("attachmentFormChangeResponse", attachmentFormChangeResponse); // delete the attachment from the attachment table