Skip to content

Commit 203c412

Browse files
committed
Change userId to Long to match userId in User Model
1 parent c4b09d8 commit 203c412

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/io/securecodebox/persistence/defectdojo/config/DefectDojoConfig.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class DefectDojoConfig {
4343
* If not null, the id should be used instead of the username.
4444
*/
4545
@Getter
46-
private final Integer userId;
46+
private final Long userId;
4747

4848
public DefectDojoConfig(String url, String apiKey, String username, int maxPageCountForGets) {
4949
this(url,apiKey,username, maxPageCountForGets, null);
@@ -53,8 +53,8 @@ public static DefectDojoConfig fromEnv(){
5353
String url = System.getenv("DEFECTDOJO_URL");
5454
String username = System.getenv("DEFECTDOJO_USERNAME");
5555
String apiKey = System.getenv("DEFECTDOJO_APIKEY");
56-
Integer userId = Optional.ofNullable(System.getenv("DEFECTDOJO_USER_ID"))
57-
.map(Integer::parseInt)
56+
Long userId = Optional.ofNullable(System.getenv("DEFECTDOJO_USER_ID"))
57+
.map(Long::parseLong)
5858
.orElse(null);
5959

6060
int maxPageCountForGets = 100;

0 commit comments

Comments
 (0)