diff --git a/res/app/components/stf/control/transaction-service.js b/res/app/components/stf/control/transaction-service.js index 9e88ba61..0742675c 100644 --- a/res/app/components/stf/control/transaction-service.js +++ b/res/app/components/stf/control/transaction-service.js @@ -1,10 +1,11 @@ var Promise = require('bluebird') +var uuid = require('node-uuid') module.exports = function TransactionServiceFactory(socket) { var transactionService = {} function createChannel() { - return 'tx' + Date.now() // @todo UUID + return 'tx.' + uuid.v4() } function Transaction(devices) {