beeoclock / client-panel-app

https://panel.beeoclock.com
2 stars 0 forks source link

Необхідно відпрвляти в OrderDto мову вибраного сервісу замість 'en'. #441

Closed dokerwin closed 1 month ago

dokerwin commented 4 months ago

На панельці після створення замовлення з вибаним сервісом на українській мові чомусь в languageCodes відправляється 'en' замість 'uk'

{
    "_id": "668827b2dce712b071e05c70",
    "object": "OrderDto",
    "products": [],
    "services": [
        {
            "_id": "668827e5dce712b071e05c74",
            "orderAppointmentDetails": {
                "object": "OrderAppointmentDetailsDto",
                "attendees": [
                    {
                        "object": "AttendantDto",
                        "customer": {
                            "object": "CustomerDto",
                            "_id": "6688227848d5043dd4ac704b",
                            "email": "nik.name.doker+1234532@gmail.com",
                            "firstName": "Степан",
                            "lastName": "",
                            "customerType": "regular",
                            "phone": "",
                            "active": 1,
                            "createdAt": "2024-07-05T16:42:32.803Z",
                            "updatedAt": "2024-07-05T16:42:32.803Z"
                        }
                    }
                ],
                "languageCodes": [
                    "en"
                ],
                "specialists": [
                    {
                        "object": "SpecialistDto",
                        "member": {
                            "_id": "667fda7aef7bde42489a9d24",
                            "email": "nik.name.doker+888@gmail.com",
                            "avatar": null,
                            "firstName": "Kozyrny",
                            "lastName": "Bub",
                            "role": "SPECIALIST",
                            "profileStatus": "active",
                            "assignments": {
                                "service": {
                                    "full": true,
                                    "include": []
                                }
                            },
                            "createdAt": "2024-06-29T09:57:14.522Z",
                            "updatedAt": "2024-06-29T10:09:40.111Z"
                        },
                        "wasSelectedAnybody": false
                    }
                ],
                "end": "2024-07-06T06:45:00.000Z",
                "start": "2024-07-06T06:00:00.000Z",
                "timeZone": "Europe/Warsaw",
                "type": "service",
                "attachments": [],
                "createdAt": "2024-07-05T17:05:45.435Z",
                "updatedAt": "Fri Jul 05 2024 19:05:45 GMT+0200 (Central European Summer Time)",
                "locations": []
            },
            "serviceSnapshot": {
                "object": "ServiceDto",
                "_id": "6606ca579fe8d5f5db3bec86",
                "presentation": {
                    "banners": [
                        {
                            "object": "MediaDto",
                            "_id": "667074a5c59ff6d499615e20",
                            "url": "https://storage.googleapis.com/beeoclock-develop.appspot.com/media/6601ad7ceb7e9477db3e40c9/service/6606ca579fe8d5f5db3bec86/banner/667074a5c59ff6d499615e20/original.png?updatedAt=2024-06-17T17:38:45.751Z",
                            "mediaType": "serviceBanner",
                            "metadata": {
                                "object": "MediaMetadataDto",
                                "height": 128,
                                "size": 2728,
                                "width": 128
                            },
                            "createdAt": "2024-06-17T17:38:45.751Z",
                            "updatedAt": "2024-06-17T17:38:45.751Z"
                        }
                    ],
                    "color": "#2ac71f"
                },
                "configuration": {
                    "duration": {
                        "durationVersionType": "RANGE"
                    },
                    "createdAt": "2024-07-05T17:05:45.434Z",
                    "updatedAt": "2024-07-05T17:05:45.434Z"
                },
                "prepaymentPolicy": {
                    "isRequired": null,
                    "isPercentage": null,
                    "value": null,
                    "minimalCancelTime": null
                },
                "languageVersions": [
                    {
                        "title": "Поголити сраку ",
                        "description": "Опис для поголоти сраку",
                        "language": "uk",
                        "active": 1
                    }
                ],
                "durationVersions": [
                    {
                        "breakInSeconds": 0,
                        "durationInSeconds": 2700,
                        "prices": [
                            {
                                "price": 0,
                                "currency": "USD",
                                "preferredLanguages": [],
                                "createdAt": "2024-07-05T17:05:45.434Z",
                                "updatedAt": "2024-07-05T17:05:45.434Z"
                            }
                        ],
                        "createdAt": "2024-07-05T17:05:45.434Z",
                        "updatedAt": "2024-07-05T17:05:45.434Z"
                    }
                ],
                "schedules": [],
                "active": 1,
                "createdAt": "2024-03-29T14:04:07.937Z",
                "updatedAt": "2024-06-17T17:38:47.389Z",
                "order": 1
            },
            "status": "accepted",
            "meta": null
        }
    ],
    "meta": {
        "history": [
            {
                "issuerId": "",
                "issuerRole": "ADMIN",
                "reason": "status",
                "value": "confirmed"
            }
        ]
    },
    "status": "confirmed",
    "businessNote": "",
    "createdAt": "2024-07-05T17:05:45.506Z",
    "updatedAt": "2024-07-05T17:05:45.506Z"
}