merged postgres repository with base repository
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
"gitea.michaelthomson.dev/mthomson/habits/internal/middleware"
|
||||
"gitea.michaelthomson.dev/mthomson/habits/internal/migrate"
|
||||
todohandler "gitea.michaelthomson.dev/mthomson/habits/internal/todo/handler"
|
||||
todorepository "gitea.michaelthomson.dev/mthomson/habits/internal/todo/repository/postgres"
|
||||
todorepository "gitea.michaelthomson.dev/mthomson/habits/internal/todo/repository"
|
||||
todoservice "gitea.michaelthomson.dev/mthomson/habits/internal/todo/service"
|
||||
"github.com/jackc/pgx/v5/pgxpool"
|
||||
)
|
||||
@@ -41,7 +41,7 @@ func main() {
|
||||
migrate.Migrate(logger, db)
|
||||
|
||||
// create repos
|
||||
todoRepository := todorepository.NewPostgresTodoRepository(logger, db)
|
||||
todoRepository := todorepository.NewTodoRepository(logger, db)
|
||||
|
||||
// create services
|
||||
todoService := todoservice.NewTodoService(logger, todoRepository)
|
||||
|
||||
Reference in New Issue
Block a user