mirror of
https://github.com/strapi/strapi.git
synced 2025-07-18 22:45:47 +00:00
19 lines
479 B
JavaScript
19 lines
479 B
JavaScript
'use strict';
|
|
|
|
const { getService } = require('../utils');
|
|
|
|
const sendDidInviteUser = async () => {
|
|
const numberOfUsers = await getService('user').count();
|
|
const numberOfRoles = await getService('role').count();
|
|
strapi.telemetry.send('didInviteUser', { numberOfRoles, numberOfUsers });
|
|
};
|
|
|
|
const sendDidUpdateRolePermissions = async () => {
|
|
strapi.telemetry.send('didUpdateRolePermissions');
|
|
};
|
|
|
|
module.exports = {
|
|
sendDidInviteUser,
|
|
sendDidUpdateRolePermissions,
|
|
};
|