mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-29 15:42:18 +00:00
Randomise new users and shorten compile script
This commit is contained in:
parent
a7310f503a
commit
60afbf1d52
2 changed files with 3 additions and 4 deletions
|
@ -8,12 +8,11 @@ var gatherController = require("../lib/gather/controller");
|
|||
var userController = require("../lib/user/controller");
|
||||
|
||||
module.exports = function (io) {
|
||||
var id = 2131;
|
||||
|
||||
var rootNamespace = io.of('/')
|
||||
|
||||
// Authorisation
|
||||
io.use(function (socket, next) {
|
||||
var id = Math.floor(Math.random() * 5000) + 1;
|
||||
enslClient.getUserById({
|
||||
id: id
|
||||
}, function (error, response, body) {
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
"scripts": {
|
||||
"test": "NODE_ENV=test mocha spec/",
|
||||
"start": "npm run compile:react && node index.js",
|
||||
"compile:dev:react": "node_modules/react-tools/bin/jsx --watch --no-cache-dir --source-map-inline -x jsx lib/react/ public/js/",
|
||||
"compile:react": "node_modules/react-tools/bin/jsx -x jsx lib/react/ public/js/",
|
||||
"compile:dev": "node_modules/react-tools/bin/jsx --watch --no-cache-dir --source-map-inline -x jsx lib/react/ public/js/",
|
||||
"compile": "node_modules/react-tools/bin/jsx -x jsx lib/react/ public/js/",
|
||||
"dev": "nodemon index.js"
|
||||
},
|
||||
"repository": {
|
||||
|
|
Loading…
Reference in a new issue