fix(notifications): validate success mode settings

This commit is contained in:
Sucukdeluxe
2026-08-22 03:51:47 +02:00
parent 754231d15c
commit 161e111c2f
3 changed files with 37 additions and 12 deletions
+3
View File
@@ -82,6 +82,9 @@ export function validateRendererSettingsUpdate(value: unknown, current: AppSetti
if (!(key in safe)) {
invalid();
}
if (key === "notifyPackageSuccessMode" && entry !== "digest" && entry !== "individual") {
invalid();
}
validateTopLevelType(entry, safe[key]);
validateJsonValue(entry);
output[key] = entry;