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
+1 -1
View File
@@ -129,7 +129,7 @@ const setupFunctions = {
}
return !args.user_id || user.id === args.user_id;
},
usernameChanged: (options, args, user, context) => {
usernameChanged: (options, args, { user }, context) => {
if (
!context.user ||
(args.user_id !== user.id &&