Switching from finish to end

This commit is contained in:
Unknown committed 2019-02-12 14:16:56 +01:00
1 parent fab83b13ca
commit 1158e418b1
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ const eventSchema = new Schema({
type: Number,
required: true,
},
finishDatetime: {
endDatetime: {
type: Number,
required: true,
},
+1 -1
View File
@@ -54,7 +54,7 @@ const resolve = (parent, {
: {},
minEndDate || maxEndDate
? {
startDatetime:
endDatetime:
Object.assign(
minEndDate ? { $gte: minEndDate } : {},
maxEndDate ? { $lte: maxEndDate } : {},
+1 -1
View File
@@ -26,7 +26,7 @@ const EventType = new GraphQLObjectType({
hostId: { type: GraphQLString },
description: { type: GraphQLString },
startDatetime: { type: GraphQLInt },
finishDatetime: { type: GraphQLInt },
endDatetime: { type: GraphQLInt },
state: { type: EventStateEnumType },
rules: {
type: new GraphQLList(RuleType),
+1 -1
View File
@@ -17,7 +17,7 @@ const Type = new GraphQLInputObjectType({
hostId: { type: GraphQLString },
description: { type: GraphQLString },
startDatetime: { type: GraphQLInt },
finishDatetime: { type: GraphQLInt },
endDatetime: { type: GraphQLInt },
formulaId: { type: GraphQLString },
plotterId: { type: GraphQLString },
prizes: { type: new GraphQLList(InputPrizeType) },