Enable some disabled functions
This commit is contained in:
@@ -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':
|
||||
|
Reference in New Issue
Block a user