mirror of
https://github.com/okieselbach/AutopilotMonitor.git
synced 2026-10-24 20:53:06 +00:00
fix rules
This commit is contained in:
@@ -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
Reference in New Issue
Block a user