fix(v1:vehicles): company_name comes from company.company_name

This commit is contained in:
Josepablo C
2024-08-16 21:11:12 -06:00
parent 593d6f6143
commit bed21badb9
2 changed files with 6 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ const pointSchema = new Schema({
const schema = new Schema({
company: { type: Schema.Types.ObjectId, ref: 'companies', required: true }, // carrier
company_name : { type: String },
company_name : { type: String, required: true },
vehicle_code: { type: String },
vehicle_name: { type: String },