Remove unneeded doctor sub-commands (#37156)

Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
wxiaoguangandGiteabot authored and GitHub committed 2026-04-09 22:22:17 +02:00
1 parent 980a8995bc
commit c10a5b908a
15 files changed
+1 -1268

No files matched your search

-10
View File
@@ -1462,16 +1462,6 @@ func IsUserVisibleToViewer(ctx context.Context, u, viewer *User) bool {
return false
}
// CountWrongUserType count OrgUser who have wrong type
func CountWrongUserType(ctx context.Context) (int64, error) {
return db.GetEngine(ctx).Where(builder.Eq{"type": 0}.And(builder.Neq{"num_teams": 0})).Count(new(User))
}
// FixWrongUserType fix OrgUser who have wrong type
func FixWrongUserType(ctx context.Context) (int64, error) {
return db.GetEngine(ctx).Where(builder.Eq{"type": 0}.And(builder.Neq{"num_teams": 0})).Cols("type").NoAutoTime().Update(&User{Type: 1})
}
func GetOrderByName() string {
if setting.UI.DefaultShowFullName {
return "full_name, name"