How can I effectively edit a discount type in an application?

I have implemented the edit function in the discount creation application created in the tutorial. I get the following error after submitting the form


There were some issues with your form submission:

codeAppDiscount.functionId Not allowed to update the code app discount


Do I need to add any code to the extensions/volume folder that I added in step 4 of the tutorial?
https://shopify.dev/apps/discounts/create

It’s hard to debug without more information. But do checkout the full documentation for discount create on shopify dev: https://shopify.dev/apps/discounts/create

Thanks for your reply.

I checked the shopify dev documentation. However, no cause was found.

Here is my code attached.If you could give me some advice I would be very pleased.

https://github.com/maneko00/discount

The tutorial was updated and I tried to rewrite it in node, but could not edit it.

https://github.com/maneko00/discount-node-test

I was able to update the discount by removing the functionId parameter from the discountCodeAppUpdate mutation argument! Thank you.

okay I see that, but we need to add more functionality

What features do I need to add?