Commit 69ea863f authored by Vu Duy Anh's avatar Vu Duy Anh

anhvd commit fix bug

parent e440cc13
...@@ -130,6 +130,8 @@ public class CampaignServiceImpl implements CampaignService { ...@@ -130,6 +130,8 @@ public class CampaignServiceImpl implements CampaignService {
public ResultDTO addNewCampaign(CampaignDTO campaignDTO) { public ResultDTO addNewCampaign(CampaignDTO campaignDTO) {
logger.info("=== Start add new campaign "); logger.info("=== Start add new campaign ");
ResultDTO resultDTO = new ResultDTO(); ResultDTO resultDTO = new ResultDTO();
campaignDTO.setCampaignName(campaignDTO.getCampaignName().trim());
campaignDTO.setContent(campaignDTO.getContent().trim());
Campaign campaign = modelMapper.map(campaignDTO, Campaign.class); Campaign campaign = modelMapper.map(campaignDTO, Campaign.class);
Long campaignId; Long campaignId;
List<TimeZoneDialModeDTO> timeZoneDialModes = new ArrayList<>(); List<TimeZoneDialModeDTO> timeZoneDialModes = new ArrayList<>();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment