mirror of https://github.com/harness/drone.git
fix: [CDE-438]: add markedForDeletion filter in count (#2887)
* add markedForDeletion filter in countdevcontainer-setup
parent
6dbe85fbfd
commit
35981e7f02
|
@ -117,9 +117,12 @@ func (s gitspaceConfigStore) Count(ctx context.Context, filter *types.GitspaceFi
|
|||
if filter.UserID != "" {
|
||||
countStmt = countStmt.Where(squirrel.Eq{"gconf_user_uid": filter.UserID})
|
||||
}
|
||||
if filter.SpaceIDs != nil {
|
||||
if len(filter.SpaceIDs) > 0 {
|
||||
countStmt = countStmt.Where(squirrel.Eq{"gconf_space_id": filter.SpaceIDs})
|
||||
}
|
||||
if filter.IncludeMarkedForDeletion {
|
||||
countStmt = countStmt.Where(squirrel.Eq{"gconf_is_marked_for_deletion": true})
|
||||
}
|
||||
|
||||
sql, args, err := countStmt.ToSql()
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue