Added photo:update to update signatures

This commit is contained in:
Deon George
2016-06-30 21:34:18 +10:00
parent f089c33b8b
commit 90c4468c43
10 changed files with 185 additions and 12 deletions

View File

@@ -34,7 +34,7 @@ class PhotoDelete extends Job implements ShouldQueue
{
if (! $this->photo->remove)
{
Log::warning(__METHOD__.' NOT Deleting: '.$this->photo->file_path().', not marked for deletion');
Log::warning(sprintf('%s: NOT Deleting [%s] not marked for deletion',__METHOD__,$this->photo->file_path()));
exit;
}
@@ -46,13 +46,13 @@ class PhotoDelete extends Job implements ShouldQueue
// Make sure our parent is writable
if (! is_writable(dirname($this->photo->file_path())))
Log::warning(__METHOD__.' NOT Deleting: '.$this->photo->file_path().', parent directory not writable');
Log::warning(sprintf('%s: NOT Deleting [%s] parent directory not writable',__METHOD__,$this->photo->file_path()));
// Perform delete
if (file_exists($this->photo->file_path()))
unlink($this->photo->file_path());
Log::info(sprintf('%s: Deleted (%s): %s',__METHOD__,$this->photo->id,$this->photo->file_path()));
Log::warning(sprintf('%s: Deleted [%s]',__METHOD__,$this->photo->file_path()));
$this->photo->delete();
}
}