Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
users.map(async (userData) => {
const {username, password} = userData;
const user = await AccountsServer.findUserByUsername(username);
if (!user) {
AccountsServer.createUser({
username,
password,
profile: {
avatar: faker.image.avatar(),
name: username + ' ' + username,
}
});
}
});
};