create sender fix

This commit is contained in:
2025-05-22 13:52:02 +03:00
parent 4182708db7
commit b0aef18c38
6 changed files with 115 additions and 57 deletions

View File

@@ -34,18 +34,18 @@ export async function POST(req: NextRequest) {
Authorization: `Bearer ${session.accessToken}`,
},
body: JSON.stringify({
owner_type: 'sender',
transport,
country_from,
city_from,
country_to,
city_to,
cargo_type,
departure,
arrival,
phone_number,
comment,
email_notification,
owner_type: data.owner_type,
transport: data.transport,
country_from: data.country_from,
city_from: data.city_from,
country_to: data.country_to,
city_to: data.city_to,
cargo_type: data.cargo_type,
departure: data.departure,
arrival: data.arrival,
phone_number: data.phone_number,
comment: data.comment || '',
email_notification: data.email_notification,
}),
})