mirror of
https://github.com/dyrkin/luxmed-bot.git
synced 2025-12-21 13:23:05 +01:00
Fixed typos
This commit is contained in:
@@ -136,7 +136,6 @@ class BootConfig {
|
||||
def monitoringsPagerActorFactory: (UserId, ActorRef) => ActorRef = (userId, originator) =>
|
||||
actorSystem.actorOf(Pagers(userId, bot, localization).monitoringsPagerProps(originator))
|
||||
|
||||
|
||||
@Bean
|
||||
def router: ActorRef = actorSystem.actorOf(Router.props(authActorFactory))
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ class MonitoringService extends Logger {
|
||||
termsEither match {
|
||||
case Right(terms) =>
|
||||
if (terms.nonEmpty) {
|
||||
LOG.debug(s"Found ${terms.length} terms by monitoring [${monitoring.recordId}]")
|
||||
LOG.debug(s"Found ${terms.length} terms by monitoring [#${monitoring.recordId}]")
|
||||
if (monitoring.autobook) {
|
||||
val term = terms.head
|
||||
bookAppointment(term, monitoring)
|
||||
@@ -209,8 +209,8 @@ class MonitoringService extends Logger {
|
||||
dataService.saveMonitoring(monitoring)
|
||||
}
|
||||
|
||||
def getActiveMonitorings(chatId: Long): Seq[Monitoring] = {
|
||||
dataService.getActiveMonitorings(chatId)
|
||||
def getActiveMonitorings(userId: Long): Seq[Monitoring] = {
|
||||
dataService.getActiveMonitorings(userId)
|
||||
}
|
||||
|
||||
def bookAppointmentByScheduleId(userId: Long, monitoringId: Long, scheduleId: Long, time: Long): Unit = {
|
||||
@@ -245,7 +245,7 @@ class MonitoringService extends Logger {
|
||||
}
|
||||
|
||||
|
||||
private def lang(chatId: Long) = localization.lang(chatId)
|
||||
private def lang(userId: Long) = localization.lang(userId)
|
||||
|
||||
@PostConstruct
|
||||
private def initialize(): Unit = {
|
||||
|
||||
@@ -74,7 +74,7 @@ trait SessionSupport {
|
||||
case Right(s) =>
|
||||
fn(s) match {
|
||||
case Left(ex) if ex.getMessage.contains("session has expired") =>
|
||||
Log.debug(s"The session for user with user [#$userId] has expired. Try to relogin")
|
||||
Log.debug(s"The session for user [#$userId] has expired. Try to relogin")
|
||||
sessions.remove(userId)
|
||||
session.flatMap(fn)
|
||||
case another =>
|
||||
|
||||
Reference in New Issue
Block a user