Skip to content

Commit

Permalink
fix base query
Browse files Browse the repository at this point in the history
  • Loading branch information
xbhouse committed Oct 10, 2024
1 parent c75c07d commit 765ce2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/dao/snapshots.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (sDao *snapshotDaoImpl) ListByTemplate(

baseQuery := readableSnapshots(sDao.db.WithContext(ctx), orgID).
Joins("JOIN templates_repository_configurations ON templates_repository_configurations.snapshot_uuid = snapshots.uuid").
Where("snapshots.repository_configuration_uuid IN ?", template.RepositoryUUIDS).
Where("templates_repository_configurations.template_uuid = ?", template.UUID).
Where("repository_configurations.name ILIKE ?", fmt.Sprintf("%%%s%%", repositorySearch))

countQuery := baseQuery.
Expand Down

0 comments on commit 765ce2f

Please sign in to comment.