Skip to content

Commit

Permalink
switch from node-uuid to uuid due to deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
rostacik committed Jun 4, 2017
1 parent 779de37 commit 1cc92ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions beervana-webjob/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var azure = require('azure-storage');
var nconf = require('nconf');
var scraper = require('beervana-scraper');
var uuid = require('node-uuid');
var uuid = require('uuid/v4');

//config data from config.json
nconf.argv().env().file({ file: __dirname + '\\config.json' });
Expand Down Expand Up @@ -30,7 +30,7 @@ scraper().then(page => {
beerBatch.insertEntity(beerBatchItem, { echoContent: true });
}

tableSvc.executeBatch(tableName, beerBatch, function (error, result, response) {
tableSvc.executeBatch(tableName, beerBatch, function(error, result, response) {
if (!error) {
for (let beer of page.beer) {
console.log(beer.beerName);
Expand Down
3 changes: 2 additions & 1 deletion beervana-webjob/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"dependencies": {
"azure-storage": "^2.1.0",
"beervana-scraper": "file:../beervana-scraper",
"nconf": "^0.8.4"
"nconf": "^0.8.4",
"uuid": "^3.0.1"
}
}

0 comments on commit 1cc92ad

Please sign in to comment.