Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(files_reminders): Always respect json output option
Signed-off-by: Christopher Ng <[email protected]>
  • Loading branch information
Pytal authored and backportbot-nextcloud[bot] committed Aug 15, 2023
commit 6f879f24dbd76676d27c8a3aad327a8f9b49e24b
9 changes: 5 additions & 4 deletions apps/files_reminders/lib/Command/ListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
}

$reminders = $this->reminderService->getAll($user ?? null);
if (empty($reminders)) {
$io->text('No reminders');
return 0;
}

$outputOption = $input->getOption('output');
switch ($outputOption) {
Expand All @@ -97,6 +93,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int
);
return 0;
default:
if (empty($reminders)) {
$io->text('No reminders');
return 0;
}

$io->table(
['User Id', 'File Id', 'Path', 'Due Date', 'Updated At', 'Created At', 'Notified'],
array_map(
Expand Down