mirror of
https://github.com/nextcloud/spreed.git
synced 2025-12-17 21:12:20 +01:00
fix: Output bot id on talk:bot:install
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
This commit is contained in:
parent
d5acc82ed8
commit
3706e1e928
1 changed files with 2 additions and 2 deletions
|
|
@ -115,7 +115,7 @@ class Install extends Base {
|
|||
$bot->setState($noSetup ? Bot::STATE_NO_SETUP : Bot::STATE_ENABLED);
|
||||
$bot->setFeatures($featureFlags);
|
||||
try {
|
||||
$this->botServerMapper->insert($bot);
|
||||
$botEntity = $this->botServerMapper->insert($bot);
|
||||
} catch (\Exception $e) {
|
||||
if ($e instanceof Exception && $e->getReason() === Exception::REASON_UNIQUE_CONSTRAINT_VIOLATION) {
|
||||
$output->writeln('<error>Bot with the same secret is already registered</error>');
|
||||
|
|
@ -126,8 +126,8 @@ class Install extends Base {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
$output->writeln('<info>Bot installed</info>');
|
||||
$output->writeln('ID: ' . $botEntity->getId());
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue