updated code comments and added v0.23.0-rc release notes

This commit is contained in:
Gani Georgiev
2024-10-05 22:01:06 +03:00
parent bc67835de9
commit 292c34ee52
5 changed files with 1215 additions and 1088 deletions
+3
View File
@@ -52,6 +52,9 @@ func (app *BaseApp) LogsStats(expr dbx.Expression) ([]*LogsStatsItem, error) {
}
// DeleteOldLogs delete all requests that are created before createdBefore.
//
// For better performance the logs delete is executed as plain SQL statement,
// aka. no delete model hook events will be fired.
func (app *BaseApp) DeleteOldLogs(createdBefore time.Time) error {
formattedDate := createdBefore.UTC().Format(types.DefaultDateLayout)
expr := dbx.NewExp("[[created]] <= {:date}", dbx.Params{"date": formattedDate})