Clever / wag

sWAGger - Web API Generator
Apache License 2.0
77 stars 6 forks source link

Fix transact bug #494

Closed dxu429 closed 1 month ago

dxu429 commented 1 month ago

Jira

https://clever.atlassian.net/browse/DD-5762

Overview

While testing the wag build from https://github.com/Clever/wag/pull/493 in a service where I was attempting to add a GSI using a date formatted string as hash key, I found wag was auto generating transaction functions multiple times. Turns out the template to autogen transact functions are in the wrong range loop; currently they are in the GSI {{ range }} block but transact funcs should operate outside/independently of GSIs review by commit

Testing

Checklist