generateRandomPlugins
talawa-api / utilities/createSampleOrganizationUtil / generateRandomPlugins
Function: generateRandomPlugins()
> generateRandomPlugins(numberOfPlugins
, users
): Promise
<Promise
<any
>[]>
Generates random plugin data for a given number of plugins and list of users.
Parameters
numberOfPlugins
number
The number of plugins to create
users
string
[]
The list of users associated with the plugins
Returns
Promise
<Promise
<any
>[]>
A promise that resolves to an array of promises for created plugins