Compare commits

...

2 Commits

Author SHA1 Message Date
Jon Fuller f17cfd9bde
Merge 10aa9c539a into 55c36d62ff 2025-08-06 22:11:40 +00:00
perf3ct 10aa9c539a
feat(ssh/api): resolve circular structure issue 2025-08-06 22:11:36 +00:00
2 changed files with 4 additions and 2 deletions

View File

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

View File

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