mirror of
https://github.com/safing/portbase
synced 2025-09-10 15:34:26 +00:00
Add shadowDelete support to record maintenance
This commit is contained in:
parent
30a53cf840
commit
bd90e5a5df
10 changed files with 87 additions and 72 deletions
|
@ -277,7 +277,7 @@ func (c *Controller) MaintainRecordStates(ctx context.Context, purgeDeletedBefor
|
|||
return ErrShuttingDown
|
||||
}
|
||||
|
||||
return c.storage.MaintainRecordStates(ctx, purgeDeletedBefore)
|
||||
return c.storage.MaintainRecordStates(ctx, purgeDeletedBefore, c.shadowDelete)
|
||||
}
|
||||
|
||||
// Purge deletes all records that match the given query. It returns the number of successful deletes and an error.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue