Switching from finish to end
This commit is contained in:
1 parent
fab83b13ca
commit
1158e418b1
4 files changed
+4
-4
No files matched your search
+1
-1
@@ -34,7 +34,7 @@ const eventSchema = new Schema({
|
||||
type: Number,
|
||||
required: true,
|
||||
},
|
||||
finishDatetime: {
|
||||
endDatetime: {
|
||||
type: Number,
|
||||
required: true,
|
||||
},
|
||||
|
||||
@@ -54,7 +54,7 @@ const resolve = (parent, {
|
||||
: {},
|
||||
minEndDate || maxEndDate
|
||||
? {
|
||||
startDatetime:
|
||||
endDatetime:
|
||||
Object.assign(
|
||||
minEndDate ? { $gte: minEndDate } : {},
|
||||
maxEndDate ? { $lte: maxEndDate } : {},
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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) },
|
||||
|
||||
Reference in new issue
Block a user