Skip to content

Commit

Permalink
[FIX] Initial User not added to default channel (#25544)
Browse files Browse the repository at this point in the history
  • Loading branch information
geekgonecrazy committed May 20, 2022
1 parent b893ffd commit 8a3c928
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/meteor/server/startup/initialData.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ Meteor.startup(async function () {
console.log('Inserting initial user:'.green);
console.log(JSON.stringify(initialUser, null, 2).green);
Users.create(initialUser);

await addUserToDefaultChannels(initialUser, true);
}
} catch (e) {
console.log('Error processing environment variable INITIAL_USER'.red, e);
Expand Down

0 comments on commit 8a3c928

Please sign in to comment.