Skip to content

Commit

Permalink
to fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
fupelaqu committed Jul 21, 2023
1 parent ed034f1 commit ea9fd7f
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
package app.softnetwork.payment.api

import akka.actor.typed.ActorSystem
import app.softnetwork.api.server.ApiEndpoint
import app.softnetwork.persistence.schema.SchemaProvider
import app.softnetwork.scheduler.launch.SchedulerEndpoints
import com.softwaremill.session.CsrfCheck
import sttp.capabilities
import sttp.capabilities.akka.AkkaStreams
import sttp.tapir.server.ServerEndpoint

import scala.concurrent.Future

trait MangoPayWithSchedulerEndpoints extends SchedulerEndpoints with MangoPayEndpoints {
_: SchemaProvider with CsrfCheck =>

override def endpoints
: ActorSystem[_] => List[ServerEndpoint[AkkaStreams with capabilities.WebSockets, Future]] =
system => super.endpoints(system) ++ schedulerEndpoints(system).endpoints
override def endpoints: ActorSystem[_] => List[ApiEndpoint] =
system => super.endpoints(system) :+ schedulerEndpoints(system)
}

0 comments on commit ea9fd7f

Please sign in to comment.