feat: enhance donation creation logging and adjust amount limits
- Add detailed secure logging throughout the donation creation API route for production debugging, including request receipt, validation results, amount calculations, PIX creation success, and error handling - Update custom donation amount schema to allow minimum 0.01 and maximum 100,000 for broader donation flexibility - Modify secure logger to always output data in production for improved monitoring and troubleshooting
This commit is contained in:
1 parent
d05fbe967e
commit
e30d9493ff
4 files changed
+58
-12
No files matched your search
+2
-2
@@ -39,8 +39,8 @@ export const DONATION_PRODUCTS = {
|
||||
name: "Valor Personalizado",
|
||||
amount: 0,
|
||||
price: 0,
|
||||
minAmount: 1, // R$ 1,00
|
||||
maxAmount: 10000, // R$ 10.000,00
|
||||
minAmount: 0.01, // R$ 0,01
|
||||
maxAmount: 100000, // R$ 100.000,00
|
||||
},
|
||||
} as const;
|
||||
|
||||
|
||||
Reference in new issue
Block a user