Cannot destructure property 'amount' of 'available.find(...)' as it is undefined.
Stacktraces
TypeError: Cannot destructure property 'amount' of 'available.find(...)' as it is undefined.
at CreatePayout.stripePayout (/app/node_modules/@vizeat/core/dist/mutations/lib/payouts/CreatePayout.js:64:29)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async CreatePayout.execute (/app/node_modules/@vizeat/core/dist/mutations/lib/payouts/CreatePayout.js:109:34)
at async /app/node_modules/@vizeat/core/dist/mutations/lib/Mutation.js:138:37
at async /app/index.js:146:31
Data
{
"_meta": {
"ulid": "01K7N520A4EGK32FHPATG75QW2",
"name": "CreatePayout",
"sentryTrace": "87812fded6552202a3f715e46ecd2836-8b6de1cf13382795-0",
"sentryBagage": "sentry-environment=production,sentry-release=a6f1885374b4abc22fb3a7e749881424ec0c1380,sentry-public_key=bb0a0adf9ef14ef4a3fb79c1e0066a78,sentry-trace_id=87812fded6552202a3f715e46ecd2836,sentry-sampled=false",
"initiator": {
"id": "01K7N51Z0PJKCYJK14KPRKEDSV",
"name": "BulkPayouts"
},
"jobId": "CreatePayout:Job:01K7N520A4EGK32FHPATG75QW2"
},
"amount": 9200,
"gateway": "stripe",
"user": {
"billing_country_iso": null,
"firstname": "Antoinette",
"lastname": "Mazzaglia",
"nickname": null,
"birth_date": "1977-03-30T00:00:00.000Z",
"phone": "+393898508036",
"country_iso": "IT",
"id": 134656,
"account_id": 134655,
"currency_id": 1,
"billing_address": null,
"parent_id": null,
"avatar_id": 265730,
"host_application_id": null,
"civility": "OTHER",
"description_title": null,
"description": "Living in Florence since 2002. I host food and wine walks of the city of Florence, along with my Florentine friends and colleagues, who are tour guides, sommeliers, and culinary professors. We all speak English and Italian and some of us speak Spanish.",
"affiliation_code": null,
"newsletter": true,
"tos": true,
"created_at": "2016-07-05T13:01:57.000Z",
"updated_at": "2022-05-04T09:26:23.000Z",
"deleted_at": null,
"old_id": 121859,
"ewid": 161990,
"locality": "Firenze",
"published_review_count": 1
},
"currency": {
"id": 1,
"title": "Euro",
"iso_3": "EUR",
"symbol": "€",
"minimum_charge_amount": 100,
"decimal_point": 2
},
"payment_ids": [
8304
]
}