Commit 6623d664cb6fd97dd3cdf542bcdf3b38b7200489

Authored by Adhidarma Hadiwinoto
1 parent 0a721d3678
Exists in master and in 1 other branch dev

xid using uuid/v1

Showing 1 changed file with 3 additions and 2 deletions Side-by-side Diff

lib/listener-partner/middlewares/common.js
1 1 'use strict';
2 2  
3   -const uniqid = require('uniqid');
  3 +// const uniqid = require('uniqid');
  4 +const uuidv1 = require('uuid/v1');
4 5 const logger = require('komodo-sdk/logger');
5 6  
6 7 module.exports = function common(req, res, next) {
... ... @@ -9,7 +10,7 @@ module.exports = function common(req, res, next) {
9 10 return;
10 11 }
11 12  
12   - res.locals.xid = uniqid();
  13 + res.locals.xid = uuidv1();
13 14 res.locals.x_http_request_ts = new Date();
14 15  
15 16 logger.info('Got request from partner', {