Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 8b4e11b

Browse files
committed
fix: "User is required" error when fetching settings
1 parent 3d59ab5 commit 8b4e11b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/UserService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ async function getUserSetting(handle) {
5252
if (gitlabMapping && gitlabMapping.gitlabUsername) {
5353
const gitlab = await dbHelper.queryOneUserByType(
5454
User, gitlabMapping.gitlabUsername, constants.USER_TYPES.GITLAB);
55-
const gitlabService = await GitlabService.create(gitlab);
56-
if (!_.isNil(gitlabService.user)) {
55+
if (!_.isNil(gitlab)) {
56+
const gitlabService = await GitlabService.create(gitlab);
5757
users.push(gitlabService.user);
5858
}
5959
}

0 commit comments

Comments
 (0)