Skip to content
Open
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
Satisfy linter :)
Signed-off-by: Simon Spannagel <[email protected]>
  • Loading branch information
Simon Spannagel committed Jan 18, 2023
commit 768436c34da0f1dbf877199f7999bad95aad90f3
13 changes: 6 additions & 7 deletions lib/private/Repair/RepairUnencryptedSize.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,17 @@ public function getName() {
return 'Repair file size of unencrypted files';
}

/**
/**
* Fix unencrypted file size
*/
public function run(IOutput $output) {

$update = $this->connection->getQueryBuilder();
$update = $this->connection->getQueryBuilder();
$update->update('filecache')
->set('unencrypted_size', "0")
->where($update->expr()->eq('encrypted',"0", IQueryBuilder::PARAM_INT));
->where($update->expr()->eq('encrypted', "0", IQueryBuilder::PARAM_INT));

if ($update->execute()) {
$output->info('Fixed file size of unencrypted files');
}
if ($update->execute()) {
$output->info('Fixed file size of unencrypted files');
}
}
}