Subversion Repositories SmartDukaan

Rev

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

Rev 25581 Rev 25582
Line 1325... Line 1325...
1325
		mailSender.send(message);
1325
		mailSender.send(message);
1326
	}
1326
	}
1327
 
1327
 
1328
	public void sendNotification() throws Exception {
1328
	public void sendNotification() throws Exception {
1329
		List<PushNotifications> pushNotifications = pushNotificationRepository.selectAllByTimestamp();
1329
		List<PushNotifications> pushNotifications = pushNotificationRepository.selectAllByTimestamp();
-
 
1330
		
-
 
1331
		LOGGER.info("pushNotifications" + pushNotifications);
1330
		if (!pushNotifications.isEmpty()) {
1332
		if (!pushNotifications.isEmpty()) {
1331
			for (PushNotifications pushNotification : pushNotifications) {
1333
			for (PushNotifications pushNotification : pushNotifications) {
1332
				Device device = deviceRepository.selectById(pushNotification.getDeviceId());
1334
				Device device = deviceRepository.selectById(pushNotification.getDeviceId());
1333
				NotificationCampaign notificationCampaign = notificationCampaignRepository
1335
				NotificationCampaign notificationCampaign = notificationCampaignRepository
1334
						.selectById(pushNotification.getNotificationCampaignid());
1336
						.selectById(pushNotification.getNotificationCampaignid());