Skip to content

Commit 3a3dbbc

Browse files
fix: try to fix foreign key nonsense
1 parent d757717 commit 3a3dbbc

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

controllers/project_update.go

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,14 @@ func UpdateProject(w http.ResponseWriter, r *http.Request) {
123123
}
124124
}
125125

126-
secondaryMentorId := int32(secondaryMentor.ID)
127126
updatedProj := &models.Project{
128-
Name: reqFields.Name,
129-
Description: reqFields.Description,
130-
Tags: strings.Join(reqFields.Tags, ","),
131-
RepoLink: reqFields.RepoLink,
132-
CommChannel: reqFields.CommChannel,
133-
ReadmeLink: reqFields.ReadmeLink,
134-
SecondaryMentorId: &secondaryMentorId,
127+
Name: reqFields.Name,
128+
Description: reqFields.Description,
129+
Tags: strings.Join(reqFields.Tags, ","),
130+
RepoLink: reqFields.RepoLink,
131+
CommChannel: reqFields.CommChannel,
132+
ReadmeLink: reqFields.ReadmeLink,
133+
SecondaryMentor: secondaryMentor,
135134
}
136135

137136
tx = db.

0 commit comments

Comments
 (0)