UI and backend connectivity implemented

This commit is contained in:
utkarshcmu
2016-01-19 05:02:22 -08:00
parent 1ab1154010
commit bcb44b7b31
8 changed files with 108 additions and 2 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ func GetDashboardSnapshot(query *m.GetDashboardSnapshotQuery) error {
func SearchDashboardSnapshots(query *m.GetDashboardSnapshotsQuery) error {
var snapshots = make(m.DashboardSnapshots, 0)
sess := x.Cols("name,key,delete_key").Limit(query.Limit)
sess := x.Limit(query.Limit)
if query.Name != "" {
sess.Where("name LIKE ?", query.Name)