Skip to content

Commit

Permalink
Update LGA code
Browse files Browse the repository at this point in the history
  • Loading branch information
bensonarafat committed Oct 4, 2023
1 parent 985aa1f commit a0c17bc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/controllers/main.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ mainController.addLga = async (req, res) => {
total_area: req.body.total_area,
postal_code: req.body.postal_code,
population: req.body.population,
lga_code: req.body.lga_code,
creation_date: req.body.creation_date,
location : {
latitude : req.body.latitude,
Expand All @@ -156,7 +155,6 @@ mainController.removeLga = async (req, res) => {
total_area: req.body.total_area,
postal_code: req.body.postal_code,
population: req.body.population,
lga_code: req.body.lga_code,
creation_date: req.body.creation_date,
location : {
latitude : req.body.latitude,
Expand Down
4 changes: 0 additions & 4 deletions src/models/lga.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ const lgaSchema = new Schema({
type: String,
require : true,
},
lga_code: {
type: String,
require: true,
},
location: {
type: schemaTypes.location,
default: null,
Expand Down

0 comments on commit a0c17bc

Please sign in to comment.