Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/controllers/course.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func CourseById(c *gin.Context) {
}

func CourseAll(c *gin.Context) {
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)

var courses []schema.Course

Expand Down
2 changes: 1 addition & 1 deletion api/controllers/professor.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func ProfessorById(c *gin.Context) {
}

func ProfessorAll(c *gin.Context) {
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)

var professors []schema.Professor

Expand Down