Function: setHistoryLimit()
setHistoryLimit(
params
:SetHistoryLimitParams
):Promise
<void
>
Defined in: electron/utils/database/historyLimitManager.ts:85
Set the history retention limit and prune older history entries if needed.
Limit behavior:
- 0 or negative: Disables history retention (unlimited)
- 1-9: Will be increased to minimum of 10
- 10+: Used as specified
Parameters
params
Parameters for setting history limit
Returns
Promise
<void
>
Throws
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error when database operations fail