fix statusTag being non-nil on active projects.
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-02-27 19:23:24 +01:00
parent 16237a89a4
commit e7be563407
4 changed files with 18 additions and 1 deletions
+4
View File
@@ -47,6 +47,10 @@ func (project *Project) Update(update ProjectUpdate) {
if update.Favorite != nil {
project.Favorite = *update.Favorite
}
if project.StatusTag != nil && !project.Active {
project.StatusTag = nil
}
}
type ProjectUpdate struct {