jdaviderb/http4s-ddd-example

View on GitHub
src/main/scala/bounded_contexts/tasks/application/UpdateTaskApplicationService.scala

Summary

Maintainability
A
40 mins
Test Coverage
package bounded_contexts.tasks.application

import bounded_contexts.share.infrastructure.DoobieConnection
import bounded_contexts.tasks.domain.TaskEntity
import bounded_contexts.tasks.infrestucture.TaskRepository
import bounded_contexts.tasks.domain.TaskEntity
import cats.effect.IO

object UpdateTaskApplicationService {
  val connection = new DoobieConnection
  val taskRepository = new TaskRepository(connection)

  def update(task: TaskEntity): IO[TaskEntity] = taskRepository.update(task)
}