FIX: Remove service accounts from quota count (#59878)

This commit is contained in:
Gabriel MABILLE
2022-12-06 14:09:25 +01:00
committed by GitHub
parent e7e20a300d
commit efc69a08fa
+1 -1
View File
@@ -294,7 +294,7 @@ func (ss *SQLStore) GetGlobalQuotaByTarget(ctx context.Context, query *models.Ge
rawSQL += fmt.Sprintf(" WHERE is_folder=%s", dialect.BooleanStr(false))
}
// removing service accounts from count
if query.Target == dialect.Quote("user") {
if query.Target == "user" {
rawSQL += fmt.Sprintf(" WHERE is_service_account=%s", dialect.BooleanStr(false))
}
resp := make([]*targetCount, 0)