refactor(webhooks): add type annotation to donationRecord for improved TypeScript safety and future database logging structure
This commit is contained in:
1 parent
2697e2d1f5
commit
9e86b187e1
1 file changed
+1
-1
@@ -39,7 +39,7 @@ export async function POST(request: NextRequest) {
|
||||
const isAnonymous = !pixQrCode.customer;
|
||||
|
||||
// Log estruturado para futura persistência em banco de dados
|
||||
const donationRecord = {
|
||||
const donationRecord: any = {
|
||||
type: "donation_paid",
|
||||
pixId: pixQrCode.id,
|
||||
amount: pixQrCode.amount,
|
||||
|
||||
Reference in new issue
Block a user