Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
hotfix: save user in login endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mgilangjanuar committed Dec 5, 2021
1 parent 28ec86e commit 6e7d6c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/api/v1/Auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class Auth {
user = await getRepository<Users>(Users).save({
username,
name: `${userAuth.firstName || ''} ${userAuth.lastName || ''}`.trim() || username,
tg_id: userAuth.id
tg_id: userAuth.id.toString()
}, { reload: true })
}

Expand Down

0 comments on commit 6e7d6c9

Please sign in to comment.