Use function params

This commit is contained in:
Luc Mcgrady 2025-07-21 02:06:53 +01:00
parent 5fab04cd94
commit b0ed5495f8
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C

View file

@ -115,13 +115,13 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
// If the cache is empty and a request has not yet been made to fill it
!retentionWorloadInfo ||
// If the parameters have been changed
lastParams.toString() !== fsrsParams($config).toString()
lastParams.toString() !== params.toString()
) {
const request = new GetRetentionWorkloadRequest({
w: params,
search: defaultparamSearch,
});
lastParams = [...fsrsParams($config)];
lastParams = [...params];
retentionWorloadInfo = getRetentionWorkload(request);
}