mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
fix filter and added postgres
This commit is contained in:
@@ -275,6 +275,10 @@ func buildFilterQuery(filter *models.RouteFilter) string {
|
||||
filterQueries = append(filterQueries, fmt.Sprintf("app_name = '%s'", filter.AppName))
|
||||
}
|
||||
|
||||
if filter.Image != "" {
|
||||
filterQueries = append(filterQueries, fmt.Sprintf("image = '%s'", filter.Image))
|
||||
}
|
||||
|
||||
for i, field := range filterQueries {
|
||||
if i == 0 {
|
||||
filterQuery = fmt.Sprintf("WHERE %s ", field)
|
||||
|
||||
Reference in New Issue
Block a user