merged postgres repository with base repository

This commit is contained in:
2025-05-15 15:40:57 -04:00
parent 651bcce12f
commit 26992f9579
5 changed files with 88 additions and 95 deletions

View File

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