Rename modify operations to update

This commit is contained in:
Amit Jakubowicz 2019-11-09 07:57:20 +01:00
parent 4223650472
commit 33401948e5
3 changed files with 3 additions and 3 deletions

2
@types/graphql.d.ts vendored
View File

@ -160,7 +160,7 @@ declare namespace GQL {
updateEvent: ICalendarEvent | null;
deleteEvent: IUser;
createEventTag: IEventTag | null;
modifyEventTag: IEventTag | null;
updateEventTag: IEventTag | null;
}
interface ISignupOnMutationArguments {

View File

@ -34,7 +34,7 @@ export const tagResolvers: ResolverMap = {
tag.translations = Promise.resolve(translations)
return tag.save()
},
modifyEventTag: async (
updateEventTag: async (
_,
req: GQL.IModifyEventTagOnMutationArguments,
context: Context

View File

@ -207,7 +207,7 @@ type Mutation {
# Tags
createEventTag(input: CreateEventTagInput!): EventTag
modifyEventTag(input: ModifyEventTagInput!): EventTag
updateEventTag(input: ModifyEventTagInput!): EventTag
}