Skip to content

Commit

Permalink
Ignore banned or deleted versions in latest version. (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang authored Jan 6, 2025
1 parent b200f30 commit e57a9c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion services/registry/registry_svc.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,11 @@ func (s *RegistryService) GetLatestNodeVersion(ctx context.Context, client *ent.
nodeVersion, err := client.NodeVersion.
Query().
Where(nodeversion.NodeIDEQ(nodeId)).
//Where(nodeversion.StatusEQ(schema.NodeVersionStatusActive)).
Where(nodeversion.StatusIn(
schema.NodeVersionStatusActive,
schema.NodeVersionStatusFlagged,
schema.NodeVersionStatusPending,
)).
Order(ent.Desc(nodeversion.FieldCreateTime)).
WithStorageFile().
WithComfyNodes().
Expand Down

0 comments on commit e57a9c0

Please sign in to comment.