for (let j = 1; j <= dayCount.length; j++) {
let date = new Date(new Date().getFullYear(), new Date().getMonth(), dayCount[j-1])
if (dayCount[j - 1] < dayCount[j]) {
date = new Date(new Date().getFullYear(), new Date().getMonth()+1, dayCount[j-1])
}
console.log(date)
if (date => start_date && date <= end_date) {
color_progress = "#93FF96"
} else
color_progress = "#000000"
TelegramBotsApi telegramBotsApi = new TelegramBotsApi(DefaultBotSession.class);
telegramBotsApi.registerBot(new EventsBotApp());
2022-02-18 19:03:31.163 ERROR 18260 --- [legram Executor] o.t.t.u.DefaultBotSession : Cannot invoke "kz.sdu.repository.UserRepository.findUserByTelegramAccount_Id(java.lang.Long)" because "this.userRepository" is null
java.lang.NullPointerException: Cannot invoke "kz.sdu.repository.UserRepository.findUserByTelegramAccount_Id(java.lang.Long)" because "this.userRepository" is null
at kz.sdu.bot.service.AuthorizationTelegramService.authLogUser(AuthorizationTelegramService.java:27) ~[classes/:na]
at kz.sdu.bot.eventsBot.component.service.EventBotService.setIds(EventBotService.java:58) ~[classes/:na]
at kz.sdu.bot.eventsBot.component.EventsBotApp.onUpdateReceived(EventsBotApp.java:48) ~[classes/:na]
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) ~[na:na]
at org.telegram.telegrambots.meta.generics.LongPollingBot.onUpdatesReceived(LongPollingBot.java:27) ~[telegrambots-meta-5.7.1.jar:na]
at org.telegram.telegrambots.updatesreceivers.DefaultBotSession$HandlerThread.run(DefaultBotSession.java:317) ~[telegrambots-5.7.1.jar:na]