fix(loads/branches): enable endpoints
This commit is contained in:
@@ -121,6 +121,7 @@ const patchVehicle = async(req, res) => {
|
||||
if( permissions !== "role_carrier" ){
|
||||
throw "You can't modify vehicles";
|
||||
}
|
||||
data.company = companyId;
|
||||
await Model.findByIdAndUpdate( elementId , data );
|
||||
return res.send( await Model.findById( elementId ) );
|
||||
}catch(error){
|
||||
|
||||
Reference in New Issue
Block a user