vendor_service.py: - Remove 6 db.commit() calls from service methods - Use db.flush() in create methods to get IDs without committing - Remove db.rollback() calls (endpoint handles transaction) - Methods affected: create_vendor, toggle_verification, set_verification, toggle_status, set_status, add_product_to_catalog vendors.py (endpoints): - Add db.commit() after set_verification() call - Add db.commit() after set_status() call This follows the industry pattern: one request = one transaction, with commit controlled at the API endpoint level. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
12 KiB
12 KiB