Code cleanup; add make lint task

This commit is contained in:
Dan Sosedoff
2022-12-01 16:51:12 -06:00
parent dafda4a977
commit f9e376a117
3 changed files with 35 additions and 25 deletions

View File

@@ -345,7 +345,7 @@ func GetTable(c *gin.Context) {
var res *client.Result
var err error
if c.Request.FormValue("type") == "materialized_view" {
if c.Request.FormValue("type") == client.ObjTypeMaterializedView {
res, err = DB(c).MaterializedView(c.Params.ByName("table"))
} else {
res, err = DB(c).Table(c.Params.ByName("table"))