Skip to content

Commit d757717

Browse files
fix: fixed a few more things
1 parent 0005e0d commit d757717

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

controllers/mentor.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,18 @@ func CreateMentorDashboard(mentor models.Mentor, db *gorm.DB) MentorDashboard {
186186
pulls = strings.Split(project.Pulls, ",")
187187
}
188188

189+
tags := make([]string, 0)
190+
if len(project.Tags) != 0 {
191+
tags = strings.Split(project.Tags, ",")
192+
}
193+
189194
projectInfo := ProjectInfo{
190195
Id: project.ID,
191196
Name: project.Name,
192197
Description: project.Description,
193198
RepoLink: project.RepoLink,
199+
ReadmeLink: project.ReadmeLink,
200+
Tags: tags,
194201
ProjectStatus: project.ProjectStatus,
195202

196203
CommitCount: project.CommitCount,

controllers/project_fetch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func newMentor(dbMentor *models.Mentor) Mentor {
3838
}
3939
func newProject(dbProject *models.Project) Project {
4040
tags := make([]string, 0)
41-
if len(tags) != 0 {
41+
if len(dbProject.Tags) != 0 {
4242
tags = strings.Split(dbProject.Tags, ",")
4343
}
4444

0 commit comments

Comments
 (0)