Skip to content

Commit

Permalink
add event location (#722)
Browse files Browse the repository at this point in the history
  • Loading branch information
guptapriyanshu7 authored Jul 5, 2022
1 parent f395447 commit 446f929
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/models/Event.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 6 additions & 0 deletions lib/schema/event/event.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ module.exports = `
isPublic: Boolean!
isRegisterable: Boolean!
location: String
latitude: Float
longitude: Float
organization: Organization
creator: User!
registrants: [UserAttende]
Expand Down Expand Up @@ -47,6 +49,8 @@ module.exports = `
isPublic: Boolean!
isRegisterable: Boolean!
location: String
latitude: Float
longitude: Float
organizationId: ID!
}

Expand Down Expand Up @@ -78,6 +82,8 @@ module.exports = `
startDate: String
endDate: String
location: String
latitude: Float
longitude: Float
allDay: Boolean
startTime: String
endTime: String
Expand Down

0 comments on commit 446f929

Please sign in to comment.