mirror of
				https://github.com/strapi/strapi.git
				synced 2025-11-04 03:43:34 +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,
 | 
						|
};
 |