zrhoffman commented on a change in pull request #4953:
URL: https://github.com/apache/trafficcontrol/pull/4953#discussion_r470377889



##########
File path: traffic_ops/traffic_ops_golang/server/servers.go
##########
@@ -640,14 +640,15 @@ func ReadID(w http.ResponseWriter, r *http.Request) {
        return
 }
 
-func selectMaxLastUpdatedQuery(where string) string {
+func selectMaxLastUpdatedQuery(queryAddition string, where string) string {
        return `SELECT max(t) from (
                SELECT max(s.last_updated) as t from server s JOIN cachegroup 
cg ON s.cachegroup = cg.id
 JOIN cdn cdn ON s.cdn_id = cdn.id
 JOIN phys_location pl ON s.phys_location = pl.id
 JOIN profile p ON s.profile = p.id
 JOIN status st ON s.status = st.id
-JOIN type t ON s.type = t.id ` + where +
+JOIN type t ON s.type = t.id ` +
+queryAddition + where +

Review comment:
       `go fmt` indents this line




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to