Skip to content

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy