Fix CustomerType and OwnerType enums: send int instead of string
Some checks failed
Build frontend / build (push) Failing after 45s
Some checks failed
Build frontend / build (push) Failing after 45s
- CustomerType: PERSONAL=0, FAMILY=1 (was 'Personal', 'Family') - OwnerType: PERSON=0, REAL_ESTATE_AGENCY=1 (was 'peerson', 'RealEstateAgency') - Backend Type column is int(11), sending strings caused 415 errors
This commit is contained in:
@ -4,8 +4,8 @@
|
||||
* Used in: Owner registration (Owner/Add)
|
||||
*/
|
||||
const OwnerType = Object.freeze({
|
||||
PERSON: 'peerson',
|
||||
REAL_ESTATE_AGENCY: 'RealEstateAgency',
|
||||
PERSON: 0,
|
||||
REAL_ESTATE_AGENCY: 1,
|
||||
});
|
||||
|
||||
// Map value → Arabic label
|
||||
|
||||
Reference in New Issue
Block a user