chore: allow organization name or uuid for audit log searching (#13721)

* chore: allow organization name or uuid for audit log searching
This commit is contained in:
Steven Masley
2024-06-28 10:01:23 -05:00
committed by GitHub
parent 3cc86cf62d
commit 6daf330d3a
4 changed files with 69 additions and 5 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ func (api *API) auditLogs(rw http.ResponseWriter, r *http.Request) {
}
queryStr := r.URL.Query().Get("q")
filter, errs := searchquery.AuditLogs(queryStr)
filter, errs := searchquery.AuditLogs(ctx, api.Database, queryStr)
if len(errs) > 0 {
httpapi.Write(ctx, rw, http.StatusBadRequest, codersdk.Response{
Message: "Invalid audit search query.",