Skip to content

Commit

Permalink
Merge pull request #271 from Regulus0811/refactor/user-roles
Browse files Browse the repository at this point in the history
不足のアーギュメントの追加
  • Loading branch information
yuminn-k authored May 8, 2024
2 parents b7cc298 + 0537491 commit 2683148
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ import (
"errors"
"flag"
"fmt"
"github.com/google/uuid"
"github.com/gorilla/websocket"
"github.com/pion/rtcp"
"github.com/pion/webrtc/v4"
"log"
"net/http"
"os"
Expand All @@ -18,6 +14,11 @@ import (
"syscall"
"time"

"github.com/google/uuid"
"github.com/gorilla/websocket"
"github.com/pion/rtcp"
"github.com/pion/webrtc/v4"

"github.com/YJU-OKURA/project_minori-gin-deployment-repo/middlewares"
"github.com/go-redis/redis/v8"

Expand Down Expand Up @@ -577,7 +578,7 @@ func initializeControllers(db *gorm.DB, redisClient *redis.Client) (*controllers
liveClassService := services.NewLiveClassService(classUserRepo, redisClient)
go manageChatRooms(db, chatManager)

createClassService := services.NewCreateClassService(classRepo, classUserRepo, classCodeRepo)
createClassService := services.NewCreateClassService(classRepo, classUserRepo, classCodeRepo, userRepo)

uploader := utils.NewAwsUploader()
userController := controllers.NewCreateUserController(userService)
Expand Down

0 comments on commit 2683148

Please sign in to comment.