File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,6 +79,12 @@ public static function getDirectory($id_module, $id_plugin = null)
7979 */
8080 public static function upload ($ source , $ data , $ options = [])
8181 {
82+ //Se è attivo il task sul controllo dello spazio disponibile allora aggiorno la cache
83+ $ task = Tasks \Task::where ('enabled ' , 1 )->where ('name ' , 'Hook Spazio disponibile ' )->first ();
84+ if ( !empty ($ task ) ){
85+ $ task ->execute ();
86+ }
87+
8288 return Upload::build ($ source , $ data );
8389 }
8490
@@ -108,6 +114,12 @@ public static function delete($filename, $data)
108114 $ upload = Upload::find ($ file ['id ' ]);
109115 $ upload ->delete ();
110116
117+ //Se è attivo il task sul controllo dello spazio disponibile allora aggiorno la cache
118+ $ task = Tasks \Task::where ('enabled ' , 1 )->where ('name ' , 'Hook Spazio disponibile ' )->first ();
119+ if ( !empty ($ task ) ){
120+ $ task ->execute ();
121+ };
122+
111123 return $ name ;
112124 } else {
113125 return null ;
You can’t perform that action at this time.
0 commit comments