Implementation fixes for TIC processing
This commit is contained in:
@@ -64,7 +64,7 @@ class File extends Model
|
||||
|
||||
// Store file
|
||||
if (Storage::put($model->full_storage_path,Storage::disk('local')->get($model->fullname),'public')) {
|
||||
unlink($model->fullname);
|
||||
unlink(Storage::disk('local')->path($model->fullname));
|
||||
} else {
|
||||
throw new \Exception(sprintf('Unable to move file [%s] to [%s]',$model->fullname,$model->full_storage_path));
|
||||
};
|
||||
@@ -95,6 +95,9 @@ class File extends Model
|
||||
'extra'=>sprintf('%s %s (%s)',$x->toRfc7231String(),$so::PRODUCT_NAME,$so->version),
|
||||
]]);
|
||||
|
||||
// Make sure all the path is in the seenby
|
||||
$model->set_seenby = $model->set_seenby->merge($model->set_path->pluck('address.id'))->unique();
|
||||
|
||||
// Save the seenby
|
||||
$model->seenby()->sync($model->set_seenby);
|
||||
|
||||
|
Reference in New Issue
Block a user