Skip presaving the presave command, since it is currently spamming the recorded history entries in bash

This commit is contained in:
David Dworken 2023-09-19 13:35:11 -07:00
parent 216803f325
commit 69047109ac
No known key found for this signature in database

View File

@ -108,6 +108,11 @@ func presaveHistoryEntry(ctx context.Context) {
entry.StartTime = time.Unix(startTime, 0).UTC()
entry.EndTime = time.Unix(0, 0).UTC()
// Skip saving references to presaving
if strings.Contains(entry.Command, "presaveHistoryEntry") {
return
}
// And persist it locally.
db := hctx.GetDb(ctx)
err = lib.ReliableDbCreate(db, *entry)