update @unraid/core and move pubsub to core

Signed-off-by: Alexis Tyler <xo@wvvw.me>
This commit is contained in:
Alexis Tyler
2019-08-17 14:13:49 +09:30
parent ddc8c3643e
commit 09cf2cd4ff
4 changed files with 7 additions and 16 deletions
-11
View File
@@ -1,11 +0,0 @@
/*
* Copyright 2019 Lime Technology Inc. All rights reserved.
* Written by: Alexis Tyler
*/
module.exports = function ($injector) {
const { PubSub } = $injector.resolve('apollo-server');
const pubsub = new PubSub();
return pubsub;
};
+2 -2
View File
@@ -21,8 +21,8 @@ module.exports = function (GraphQLJSON, GraphQLLong, GraphQLUUID, pubsub) {
};
// // Recieve test messages.
// pubsub.subscribe('ping', (...rest) => {
// console.log(`CHANNEL: ping DATA: ${JSON.stringify(rest, null, 2)}`);
// pubsub.subscribe('users', (...rest) => {
// console.log(`CHANNEL: users DATA: ${JSON.stringify(rest, null, 2)}`);
// })
return {