Add previous username to notification

This commit is contained in:
Chi Vinh Le
2018-01-18 20:09:47 +01:00
parent ddf3816f5a
commit 544ef081dc
4 changed files with 24 additions and 7 deletions
+6 -1
View File
@@ -1465,6 +1465,11 @@ type RootMutation {
stopIgnoringUser(id: ID!): StopIgnoringUserResponse
}
type UsernameChangedPayload {
previousUsername: String
user: User
}
################################################################################
## Subscriptions
################################################################################
@@ -1522,7 +1527,7 @@ type Subscription {
# Get an update whenever a username has been changed. `user_id` must match id
# of current user except for users with the `ADMIN` or `MODERATOR` role.
usernameChanged(user_id: ID): User
usernameChanged(user_id: ID): UsernameChangedPayload
}
################################################################################