Skip to content

Commit

Permalink
Set default language when creating a new account
Browse files Browse the repository at this point in the history
  • Loading branch information
dmbaranov committed May 18, 2020
1 parent b034582 commit 6039e0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controllers/start/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ start.enter(async (ctx: ContextMessageUpdate) => {
name: ctx.from.first_name + ' ' + ctx.from.last_name,
observableMovies: [],
lastActivity: now,
totalMovies: 0
totalMovies: 0,
language: 'en'
});

await newUser.save();
Expand Down

0 comments on commit 6039e0b

Please sign in to comment.