Enhancement: handle immich v1.118 breaking API change (#4110)

This commit is contained in:
shamoon authored and GitHub committed 2024-10-10 14:01:42 -07:00
1 parent cd8c224ffa
commit 19bdc0ec34
4 files changed
+32 -12

No files matched your search

+3 -3
View File
@@ -406,7 +406,7 @@ export function cleanServiceGroups(groups) {
// frigate
enableRecentEvents,
// glances, mealie, pihole, pfsense
// glances, immich, mealie, pihole, pfsense
version,
// glances
@@ -568,8 +568,8 @@ export function cleanServiceGroups(groups) {
if (snapshotHost) cleanedService.widget.snapshotHost = snapshotHost;
if (snapshotPath) cleanedService.widget.snapshotPath = snapshotPath;
}
if (["glances", "mealie", "pfsense", "pihole"].includes(type)) {
if (version) cleanedService.widget.version = version;
if (["glances", "immich", "mealie", "pfsense", "pihole"].includes(type)) {
if (version) cleanedService.widget.version = parseInt(version, 10);
}
if (type === "glances") {
if (metric) cleanedService.widget.metric = metric;