From 60a58e71e01ee9b59d259fb5bc699280842e4f17 Mon Sep 17 00:00:00 2001 From: Harsh Khandeparkar Date: Sat, 13 Jan 2024 15:13:59 +0530 Subject: [PATCH] feat: send blog link in student dashboard --- controllers/student.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/student.go b/controllers/student.go index 1b87159..ea21160 100644 --- a/controllers/student.go +++ b/controllers/student.go @@ -41,6 +41,7 @@ type StudentDashboard struct { College string `json:"college"` PassedMidEvals bool `json:"passed_mid_evals"` PassedEndEvals bool `json:"passed_end_evals"` + BlogLink string `json:"blog_link"` CommitCount uint `json:"commit_count"` PullCount uint `json:"pull_count"` @@ -258,6 +259,7 @@ func CreateStudentDashboard(modelStudent models.Student, db *gorm.DB) StudentDas College: modelStudent.College, PassedMidEvals: modelStudent.PassedMidEvals, PassedEndEvals: modelStudent.PassedEndEvals, + BlogLink: modelStudent.BlogLink, CommitCount: modelStudent.CommitCount, PullCount: modelStudent.PullCount, LinesAdded: modelStudent.LinesAdded,