Ready for first debug

This commit is contained in:
Luis Fernando Molina committed 2021-08-30 16:28:05 +02:00
1 parent 62726d8faa
commit a52e9aa0a9
11 files changed
+59 -17

No files matched your search

+8
View File
@@ -21,6 +21,10 @@ The SA object is accesible everywhere at the Superalgos Network.
It provides access to all modules built for Superalgos in general.
*/
global.SA = {}
/* Load Environment Variables */
let ENVIRONMENT = require('../Environment.js');
let ENVIRONMENT_MODULE = ENVIRONMENT.newEnvironment()
global.env = ENVIRONMENT_MODULE
/*
First thing is to load the project schema file.
*/
@@ -32,6 +36,10 @@ let MULTI_PROJECT = require('../MultiProject.js');
let MULTI_PROJECT_MODULE = MULTI_PROJECT.newMultiProject()
MULTI_PROJECT_MODULE.initialize(CL, 'CL')
MULTI_PROJECT_MODULE.initialize(SA, 'SA')
/*
Node Modules Dependencies
*/
NT.nodeModules.web3 = require('web3')
let socialGraphService = NT.modules.socialGraph.newSocialGraph()
socialGraphService.initialize()
+2 -2
View File
@@ -45,13 +45,13 @@ exports.newClientInterface = function newClientInterface() {
*/
let eventReceived = JSON.parse(eventMessage)
if (NT.globals.memory.EVENTS.get(eventReceived.eventId) !== undefined) {
if (NT.globals.memory.maps.EVENTS.get(eventReceived.eventId) !== undefined) {
throw ('Event Already Exists.')
}
let event = NT.modules.event.newNetworkModulesEvent()
event.initialize(eventReceived)
NT.globals.memory.EVENTS.set(eventReceived.eventId, event)
NT.globals.memory.maps.EVENTS.set(eventReceived.eventId, event)
}
function queryReceived(queryMessage) {