Skip to content

Commit

Permalink
v0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
bertspaan committed Jan 13, 2016
1 parent e8efa9e commit 8690a19
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
var url = require('url');
var util = require('util');
var redis = require('redis');
var express = require('express');
var router = express.Router();
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "histograph-stats",
"version": "0.0.1",
"version": "0.5.0",
"description": "Executes set of queries and writes results to Redis",
"main": "index.js",
"scripts": {
"test": "jshint *.js && jscs *.js"
},
"author": "Bert Spaan",
"license": "GPL-3.0",
"license": "MIT",
"dependencies": {
"cron": "^1.0.9",
"express": "^4.13.1",
"highland": "^2.5.1",
"histograph-config": "histograph/config",
"histograph-config": "git+https://github.com/histograph/config#v0.5.0",
"neo4j": "^2.0.0-RC2",
"redis": "^0.12.1"
},
Expand Down
3 changes: 2 additions & 1 deletion queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ module.exports = function(config) {

update: function() {
console.log('Executing all Cypher queries...');

// Read files containing cypher queries, and execute cypher
var results = _(queryNames)
.map(function(query) {
Expand All @@ -67,7 +68,7 @@ module.exports = function(config) {
var query = result[0];
var name = path.basename(query, path.extname(query));
client.hset(queue, name, JSON.stringify(result[1]));
})
});
},

names: queryNames.map(function(name) {
Expand Down

0 comments on commit 8690a19

Please sign in to comment.