Continuing on micro workers, and corrected some bugs
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
var hash = require('sha256');
|
||||
var secretKey = require('../private.js').microSecretKey;
|
||||
|
||||
module.exports = function(campaignId, workerId) {
|
||||
module.exports = function(workerId, campaignId) {
|
||||
|
||||
if (campaignId === undefined) {
|
||||
|
||||
return 'mw-dummyvcode';
|
||||
|
||||
}
|
||||
|
||||
return 'mw-' + hash(campaignId + workerId + secretKey);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user