mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
fix new team 500 (#6749)
* fix new team 500 * Update models/unit.go Co-Authored-By: lunny <xiaolunwen@gmail.com>
This commit is contained in:
@@ -25,6 +25,11 @@ const (
|
||||
UnitTypeExternalTracker // 7 ExternalTracker
|
||||
)
|
||||
|
||||
// Value returns integer value for unit type
|
||||
func (u UnitType) Value() int {
|
||||
return int(u)
|
||||
}
|
||||
|
||||
func (u UnitType) String() string {
|
||||
switch u {
|
||||
case UnitTypeCode:
|
||||
|
Reference in New Issue
Block a user