mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-19 20:19:15 +00:00
i need remove ctx stranger
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
const crypto = require('crypto')
|
||||
|
||||
const generateRef = () => {
|
||||
return crypto.randomUUID()
|
||||
/**
|
||||
* Generamos un UUID unico con posibilidad de tener un prefijo
|
||||
* @param {*} prefix
|
||||
* @returns
|
||||
*/
|
||||
const generateRef = (prefix = false) => {
|
||||
const id = crypto.randomUUID()
|
||||
return prefix ? `${prefix}_${id}` : id
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user