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": "01K7T9VENTNB8A7P6Z0PZMDVVS",
"name": "CreatePayout",
"sentryTrace": "cf49beb3837ecbfbdb8e8f2fad88b3ea-e78db32e796365d1-0",
"sentryBagage": "sentry-environment=production,sentry-release=a6f1885374b4abc22fb3a7e749881424ec0c1380,sentry-public_key=bb0a0adf9ef14ef4a3fb79c1e0066a78,sentry-trace_id=cf49beb3837ecbfbdb8e8f2fad88b3ea,sentry-sampled=false",
"initiator": {
"id": "01K7T9VD0Q4235Z1P9VBV6PK3M",
"name": "BulkPayouts"
},
"jobId": "CreatePayout:Job:01K7T9VENTNB8A7P6Z0PZMDVVS"
},
"amount": 4300,
"gateway": "stripe",
"user": {
"billing_country_iso": null,
"firstname": "Sam",
"lastname": "Faulkner",
"nickname": null,
"birth_date": "1989-01-06T00:00:00.000Z",
"phone": "+447408803813",
"country_iso": "GB",
"id": 154968,
"account_id": 155021,
"currency_id": 1,
"billing_address": null,
"parent_id": null,
"avatar_id": 366372,
"host_application_id": null,
"civility": "MR",
"description_title": null,
"description": "I am an avid foodie and traveller with a lot of experience cooking and eating out around London. I work in the music industry, I am open-minded, adventurous and always trying new things.",
"affiliation_code": "UKFACEBOOKHOSTRECRUITLONDON",
"newsletter": false,
"tos": true,
"created_at": "2017-01-07T02:17:24.000Z",
"updated_at": "2022-05-04T09:26:23.000Z",
"deleted_at": null,
"old_id": 197258,
"ewid": null,
"locality": "London",
"published_review_count": 2
},
"currency": {
"id": 1,
"title": "Euro",
"iso_3": "EUR",
"symbol": "€",
"minimum_charge_amount": 100,
"decimal_point": 2
},
"payment_ids": [
10488,
13781
]
}