Browse Source

geolocation param renamed to geo

master
arnaucode 7 years ago
parent
commit
a84ee68672
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      models/alertModel.js
  2. +1
    -1
      models/eventModel.js
  3. +1
    -1
      models/userModel.js

+ 1
- 1
models/alertModel.js

@ -12,7 +12,7 @@ var alertSchema = new Schema({
direction: { type: String }, direction: { type: String },
city: { type: String }, city: { type: String },
district: { type: String }, district: { type: String },
geolocation: {
geo: {
lat: {type: Number}, lat: {type: Number},
long: {type: Number}, long: {type: Number},
name: { type: String } name: { type: String }

+ 1
- 1
models/eventModel.js

@ -16,7 +16,7 @@ var eventSchema = new Schema({
direction: { type: String }, direction: { type: String },
city: { type: String }, city: { type: String },
district: { type: String }, district: { type: String },
geolocation: {
geo: {
lat: {type: Number}, lat: {type: Number},
long: {type: Number}, long: {type: Number},
name: { type: String} name: { type: String}

+ 1
- 1
models/userModel.js

@ -32,7 +32,7 @@ var userSchema = new Schema({
direction: { type: String }, direction: { type: String },
city: { type: String }, city: { type: String },
district: { type: String }, district: { type: String },
geolocation: {
geo: {
lat: {type: Number}, lat: {type: Number},
long: {type: Number}, long: {type: Number},
name: { type: String} name: { type: String}

Loading…
Cancel
Save