fix: ingestreferencecommand

fix label generation for canons of dort content
This commit is contained in:
2026-03-27 14:43:29 -04:00
parent fa7af9d5c7
commit 7ee5437f8a

View File

@@ -144,6 +144,10 @@ class IngestReferenceCommand extends Command
$ref->setContent($md);
$ref->setName($this->name);
$ref->setType($this->type);
if ($this->type == 'cd') {
$label = substr(basename($file), 0, -3);
}
$ref->setLabel($label);
$this->io->success("Ingested {$this->name} as {$this->type}:{$label}");