Fixed typos

This commit is contained in:
Eugene Zadyra
2018-06-01 23:28:06 +02:00
parent 68921b5e68
commit d2a7c93c5e
3 changed files with 5 additions and 6 deletions

View File

@@ -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))

View File

@@ -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 = {

View File

@@ -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 =>