add declarative system management with config.yml (#70, #206)

This commit is contained in:
Henry Dollman
2024-10-22 18:46:52 -04:00
parent 539c0ccb1d
commit a975466fc7
5 changed files with 140 additions and 14 deletions

View File

@@ -112,14 +112,6 @@ func (rm *RecordManager) CreateLongerRecords() {
// get shorter records from the past x minutes
var stats RecordStats
// allShorterRecords, err := txDao.FindRecordsByExpr(
// collection,
// dbx.NewExp(
// "type = {:type} AND system = {:system} AND created > {:created}",
// dbx.Params{"type": recordData.shorterType, "system": system.Id, "created": shorterRecordPeriod},
// ),
// )
err := txDao.DB().
Select("stats").
From(collection.Name).