Enable some disabled functions

This commit is contained in:
Deon George
2020-01-05 21:55:26 +11:00
parent 2e222b814b
commit 948e8ce9fc
4 changed files with 20 additions and 7 deletions

View File

@@ -49,14 +49,13 @@ class CatalogAutoDelete extends Command
$class = $this->getModelType($this->argument('type'));
$class::where('remove',1)->each(function($o) {
foreach ($o->myduplicates() as $oo) {
foreach ($o->myduplicates()->get() as $oo) {
if (! $oo->signature OR ! $oo->file_signature)
continue;
if ($oo->signature == $o->signature AND $oo->file_signature == $o->file_signature) {
$this->info(sprintf('Removing: %s (%s)',$o->id,$o->filename));
continue;
// Dispatch Job to move file.
switch (strtolower($this->argument('type'))) {
case 'photo':