From a84ee68672b499f823f4db17e13ca046b16d7769 Mon Sep 17 00:00:00 2001 From: arnaucode Date: Fri, 17 Feb 2017 22:03:39 +0100 Subject: [PATCH] geolocation param renamed to geo --- models/alertModel.js | 2 +- models/eventModel.js | 2 +- models/userModel.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/models/alertModel.js b/models/alertModel.js index ed3d8a3..db50f9c 100644 --- a/models/alertModel.js +++ b/models/alertModel.js @@ -12,7 +12,7 @@ var alertSchema = new Schema({ direction: { type: String }, city: { type: String }, district: { type: String }, - geolocation: { + geo: { lat: {type: Number}, long: {type: Number}, name: { type: String } diff --git a/models/eventModel.js b/models/eventModel.js index 9cd86a6..fd4857e 100644 --- a/models/eventModel.js +++ b/models/eventModel.js @@ -16,7 +16,7 @@ var eventSchema = new Schema({ direction: { type: String }, city: { type: String }, district: { type: String }, - geolocation: { + geo: { lat: {type: Number}, long: {type: Number}, name: { type: String} diff --git a/models/userModel.js b/models/userModel.js index 1922bfc..97a3b1d 100644 --- a/models/userModel.js +++ b/models/userModel.js @@ -32,7 +32,7 @@ var userSchema = new Schema({ direction: { type: String }, city: { type: String }, district: { type: String }, - geolocation: { + geo: { lat: {type: Number}, long: {type: Number}, name: { type: String}