Subversion Repositories SmartDukaan

Rev

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

Rev 28397 Rev 28398
Line 77... Line 77...
77
 
77
 
78
		List<Device> devices = deviceRepository.selectByUserIdAndModifiedTimestamp(userIds,
78
		List<Device> devices = deviceRepository.selectByUserIdAndModifiedTimestamp(userIds,
79
				LocalDateTime.now().minusMonths(3), LocalDateTime.now());
79
				LocalDateTime.now().minusMonths(3), LocalDateTime.now());
80
 
80
 
81
		LOGGER.info("devices" + devices);
81
		LOGGER.info("devices" + devices);
82
		if (devices.isEmpty()) {
82
		if (!devices.isEmpty()) {
83
			pushNotification(nc.getId(), devices);
83
			pushNotification(nc.getId(), devices);
84
		}
84
		}
85
	}
85
	}
86
 
86
 
87
	public void pushNotification(int cid, List<Device> devices) {
87
	public void pushNotification(int cid, List<Device> devices) {