diff --git a/src/schema/mutations/ChangeEventState.js b/src/schema/mutations/ChangeEventState.js index a4395ee32..4d005a9e4 100644 --- a/src/schema/mutations/ChangeEventState.js +++ b/src/schema/mutations/ChangeEventState.js @@ -33,6 +33,8 @@ const resolve = (parent, { eventId: _id, state }, { userId: hostId }) => { } switch (state) { + case UNPUBLISHED: + throw new NotImplementedYetError('Still working on it'); case PUBLISHED: return new Promise((res, rej) => { Event.findOneAndUpdate({ _id, hostId, state: UNPUBLISHED }, { state }, { new: true }, (err, modifiedEvent) => {