Skip to content

Commit cf7862c

Browse files
Merge pull request #2 from app-generator/step5/github-oauth
hotfix
2 parents 2beb407 + f3245a6 commit cf7862c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/user.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const createUserWithToken = async (userData: any) => {
1818
const query = {
1919
username,
2020
email,
21-
user_role: role.role_no ?? DEFAULT_ROLE.role_no,
21+
user_role: role?.role_no ?? DEFAULT_ROLE.role_no,
2222
};
2323
const newUser = new User(query);
2424
const returnedData: any = await newUser.save();

0 commit comments

Comments
 (0)