This commit is contained in:
Jake Kasper
2025-08-25 09:47:47 -04:00
parent 4a9de349c6
commit a374fff7e6

View File

@@ -94,7 +94,7 @@ const userProductSchema = Joi.object({
id: Joi.number().optional(), // For existing settings
equipmentId: Joi.number().integer().positive().optional(), // Link to user_equipment
// Legacy fields for backward compatibility
spreaderBrand: Joi.string().max(100).allow(null, undefined).optional(),
spreaderBrand: Joi.string().max(100).allow(null, '').optional(),
spreaderModel: Joi.alternatives().try(
Joi.string().max(100).allow(''),
Joi.allow(null)