Subversion Repositories SmartDukaan

Rev

Rev 31238 | Rev 31280 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31238 Rev 31279
Line 225... Line 225...
225
 
225
 
226
	@Autowired
226
	@Autowired
227
	UserAccountRepository userAccountRepository;
227
	UserAccountRepository userAccountRepository;
228
 
228
 
229
	private void sendNotification(Offer offer) throws Exception {
229
	private void sendNotification(Offer offer) throws Exception {
-
 
230
		if (!YearMonth.from(offer.getCreatedTimestamp()).equals(YearMonth.now())) {
-
 
231
			return;
-
 
232
		}
230
		String fileName = "offer-" + offer.getId() + ".png";
233
		String fileName = "offer-" + offer.getId() + ".png";
231
		String htmlFileName = fileName.replace("png", "html");
234
		String htmlFileName = fileName.replace("png", "html");
232
		CreateOfferRequest createOfferRequest = offerService.getCreateOfferRequest(offer);
235
		CreateOfferRequest createOfferRequest = offerService.getCreateOfferRequest(offer);
233
		SendNotificationModel sendNotificationModel = new SendNotificationModel();
236
		SendNotificationModel sendNotificationModel = new SendNotificationModel();
234
		sendNotificationModel.setCampaignName("SchemeOffer");
237
		sendNotificationModel.setCampaignName("SchemeOffer");