Skip to content

Commit

Permalink
Fix #846: Cannot construct instance of ConfigurationDataDto (#847)
Browse files Browse the repository at this point in the history
  • Loading branch information
jandusil authored Aug 28, 2023
1 parent 6d4af2b commit 7ffa9cf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package com.wultra.app.enrollmentserver.api.model.onboarding.response.data;

import lombok.Builder;
import lombok.Data;

/**
Expand All @@ -25,7 +24,6 @@
* @author Lukas Lukovsky, [email protected]
*/
@Data
@Builder
public class ConfigurationDataDto {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,9 @@ public IdentityVerificationRestService(
this.presenceCheckService = presenceCheckService;
this.stateMachineService = stateMachineService;

this.integrationConfigDto = ConfigurationDataDto.builder()
.otpResendPeriod(onboardingConfig.getOtpResendPeriod().toString())
.otpResendPeriodSeconds(onboardingConfig.getOtpResendPeriod().toSeconds())
.build();
this.integrationConfigDto = new ConfigurationDataDto();
integrationConfigDto.setOtpResendPeriod(onboardingConfig.getOtpResendPeriod().toString());
integrationConfigDto.setOtpResendPeriodSeconds(onboardingConfig.getOtpResendPeriod().toSeconds());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ public OnboardingServiceImpl(
this.otpService = otpService;
this.activationService = activationService;
this.onboardingProvider = onboardingProvider;
this.integrationConfigDto = ConfigurationDataDto.builder()
.otpResendPeriod(onboardingConfig.getOtpResendPeriod().toString())
.otpResendPeriodSeconds(onboardingConfig.getOtpResendPeriod().toSeconds()).build();
this.integrationConfigDto = new ConfigurationDataDto();
integrationConfigDto.setOtpResendPeriod(onboardingConfig.getOtpResendPeriod().toString());
integrationConfigDto.setOtpResendPeriodSeconds(onboardingConfig.getOtpResendPeriod().toSeconds());
}

/**
Expand Down

0 comments on commit 7ffa9cf

Please sign in to comment.