fix rules

This commit is contained in:
Oliver Kieselbach
2026-03-13 23:17:29 +01:00
parent 9c31d21cea
commit b014005dec
4 changed files with 8 additions and 2 deletions
@@ -1 +1 @@
447
449
@@ -98,6 +98,10 @@ namespace AutopilotMonitor.Functions.Services
return await _storageService.StoreRuleStateAsync(tenantId, rule.RuleId, rule.Enabled);
}
// Ensure custom rules keep correct flags (the incoming payload may
// omit them, causing them to default to IsBuiltIn=true in the model).
rule.IsBuiltIn = false;
rule.IsCommunity = false;
rule.UpdatedAt = DateTime.UtcNow;
return await _storageService.StoreGatherRuleAsync(rule, tenantId);
}
@@ -300,6 +300,8 @@ export default function GatherRulesPage() {
enabled: rule.enabled,
author: rule.author,
createdAt: rule.createdAt,
isBuiltIn: rule.isBuiltIn ?? false,
isCommunity: rule.isCommunity ?? false,
};
const result = await mutate(
File diff suppressed because one or more lines are too long