From 446f929499d8d050c05529498691bdad4850d674 Mon Sep 17 00:00:00 2001 From: Priyanshu Gupta <60141300+guptapriyanshu7@users.noreply.github.com> Date: Tue, 5 Jul 2022 20:01:49 +0530 Subject: [PATCH] add event location (#722) --- lib/models/Event.js | 8 ++++++++ lib/schema/event/event.graphql | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/lib/models/Event.js b/lib/models/Event.js index b47f59f03a..72f1d71f0a 100644 --- a/lib/models/Event.js +++ b/lib/models/Event.js @@ -42,6 +42,14 @@ const eventSchema = new Schema({ location: { type: String, }, + latitude: { + type: Number, + required: false, + }, + longitude: { + type: Number, + required: false, + }, recurring: { type: Boolean, required: true, diff --git a/lib/schema/event/event.graphql b/lib/schema/event/event.graphql index 2b41b0be6f..625e5852c6 100644 --- a/lib/schema/event/event.graphql +++ b/lib/schema/event/event.graphql @@ -13,6 +13,8 @@ module.exports = ` isPublic: Boolean! isRegisterable: Boolean! location: String + latitude: Float + longitude: Float organization: Organization creator: User! registrants: [UserAttende] @@ -47,6 +49,8 @@ module.exports = ` isPublic: Boolean! isRegisterable: Boolean! location: String + latitude: Float + longitude: Float organizationId: ID! } @@ -78,6 +82,8 @@ module.exports = ` startDate: String endDate: String location: String + latitude: Float + longitude: Float allDay: Boolean startTime: String endTime: String