Commit eb1d80ea80c37a56f22e4794a68d113ceafab18c

Authored by tmcdeveloper
1 parent d827a9eb79
Exists in master

just kidding, now linting errors are fixed

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
imports/startup/server/fixtures.js
1 const users = [{ 1 const users = [{
2 email: 'admin@admin.com', 2 email: 'admin@admin.com',
3 password: 'password', 3 password: 'password',
4 profile: { 4 profile: {
5 name: { first: 'Carl', last: 'Winslow' }, 5 name: { first: 'Carl', last: 'Winslow' },
6 }, 6 },
7 roles: ['admin'] 7 roles: ['admin'],
8 }]; 8 }];
9 9
10 users.forEach(({ email, password, profile, roles }) => { 10 users.forEach(({ email, password, profile, roles }) => {
11 const userExists = Meteor.users.findOne({ 'emails.address': email }); 11 const userExists = Meteor.users.findOne({ 'emails.address': email });
12 12
13 if (!userExists) { 13 if (!userExists) {
14 const userId = Accounts.createUser({ email, password, profile }); 14 const userId = Accounts.createUser({ email, password, profile });
15 Roles.addUsersToRoles(userId, roles); 15 Roles.addUsersToRoles(userId, roles);
16 } 16 }
17 }); 17 });
18 18