geolocation param renamed to geo

This commit is contained in:
arnaucode
2017-02-17 22:03:39 +01:00
parent b62ddb37bc
commit a84ee68672
3 changed files with 3 additions and 3 deletions

View File

@@ -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 }

View File

@@ -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}

View File

@@ -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}