1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-07 21:56:33 +02:00

feat(console): fix EntriesCopyCommand #543

This commit is contained in:
Awilum
2021-09-14 18:26:07 +03:00
parent f1b31360d1
commit 781c52b351

View File

@@ -29,8 +29,6 @@ class EntriesCopyCommand extends Command
{
$io = new SymfonyStyle($input, $output);
$data = serializers()->json()->decode($input->getOption('data') ?? []);
if (entries()->copy($input->getOption('id'), $input->getOption('newID'))) {
$io->success('Entry ' . $input->getOption('id') . ' coppied to ' . $input->getOption('newID'));
return Command::SUCCESS;