mirror of
https://github.com/strapi/strapi.git
synced 2025-12-03 10:32:10 +00:00
Associate machine id to user
This commit is contained in:
parent
f7e74fed0a
commit
143446593a
@ -6,6 +6,7 @@
|
||||
|
||||
// Node.js core.
|
||||
const request = require('request');
|
||||
const { machineIdSync } = require('node-machine-id');
|
||||
|
||||
module.exports = function trackSuccess(event, scope, error) {
|
||||
request
|
||||
@ -13,6 +14,7 @@ module.exports = function trackSuccess(event, scope, error) {
|
||||
.form({
|
||||
event,
|
||||
uuid: scope.uuid,
|
||||
deviceId: machineIdSync(),
|
||||
properties: {
|
||||
error
|
||||
}
|
||||
|
||||
@ -18,6 +18,7 @@
|
||||
"inquirer": "^6.2.1",
|
||||
"listr": "^0.14.1",
|
||||
"lodash": "^4.17.5",
|
||||
"node-machine-id": "^1.1.10",
|
||||
"ora": "^2.1.0",
|
||||
"request": "^2.88.0",
|
||||
"strapi-utils": "3.0.0-alpha.23",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user