Fix inconsistencies when editing rules and saving a mix of new and old ones

This commit is contained in:
Alejandro Celaya
2024-03-03 09:09:19 +01:00
parent 3bfb29a51c
commit a843c59d77
4 changed files with 30 additions and 2 deletions

View File

@@ -76,6 +76,7 @@ class ManageRedirectRulesCommand extends Command
$rulesToSave = $this->processRules($shortUrl, $io, $this->ruleService->rulesForShortUrl($shortUrl));
if ($rulesToSave !== null) {
$this->ruleService->saveRulesForShortUrl($shortUrl, $rulesToSave);
$io->success('Rules properly saved');
}
return ExitCode::EXIT_SUCCESS;