Compare commits

..

1 Commits

Author SHA1 Message Date
Jon Fuller 165701f68e
Merge 8ce5243c7b into 55c36d62ff 2025-08-06 13:39:25 -07:00
2 changed files with 2 additions and 4 deletions

View File

@ -66,8 +66,7 @@ class Api {
// crude stoppage attempt // crude stoppage attempt
let response = await httpClient.get(endpoint, queryParams); let response = await httpClient.get(endpoint, queryParams);
if (lastReponse) { if (lastReponse) {
// Compare only the response body to avoid circular reference issues if (JSON.stringify(lastReponse) == JSON.stringify(response)) {
if (JSON.stringify(lastReponse.body) == JSON.stringify(response.body)) {
break; break;
} }
} }

View File

@ -252,8 +252,7 @@ class FreeNASSshDriver extends ControllerZfsBaseDriver {
// crude stoppage attempt // crude stoppage attempt
let response = await httpClient.get(endpoint, queryParams); let response = await httpClient.get(endpoint, queryParams);
if (lastReponse) { if (lastReponse) {
// Compare only the response body to avoid circular reference issues if (JSON.stringify(lastReponse) == JSON.stringify(response)) {
if (JSON.stringify(lastReponse.body) == JSON.stringify(response.body)) {
break; break;
} }
} }