Live update on stream when banned user, suspended user or rejected username

This commit is contained in:
Chi Vinh Le
2017-06-27 20:06:27 +07:00
parent 64a4bf6760
commit c90c177b7c
30 changed files with 375 additions and 108 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ const mutators = require('./mutators');
const uuid = require('uuid');
const plugins = require('../services/plugins');
const pubsub = require('../services/pubsub');
const debug = require('debug')('talk:graph:context');
/**
@@ -32,7 +33,7 @@ const decorateContextPlugins = (context, contextPlugins) => contextPlugins.reduc
* Stores the request context.
*/
class Context {
constructor({user = null}, pubsub) {
constructor({user = null}) {
// Generate a new context id for the request.
this.id = uuid.v4();