mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 13:32:41 +08:00
move cleanup: seed bonus and seeding leeching time to job
This commit is contained in:
@@ -46,6 +46,7 @@ class PluginRepository extends BaseRepository
|
||||
|
||||
public function doInstall(Plugin $plugin)
|
||||
{
|
||||
$plugin->update(['status' => Plugin::STATUS_INSTALLING]);
|
||||
$packageName = $plugin->package_name;
|
||||
try {
|
||||
$this->execComposerConfig($plugin);
|
||||
@@ -72,6 +73,7 @@ class PluginRepository extends BaseRepository
|
||||
|
||||
public function doDelete(Plugin $plugin)
|
||||
{
|
||||
$plugin->update(['status' => Plugin::STATUS_DELETING]);
|
||||
$packageName = $plugin->package_name;
|
||||
$removeSuccess = true;
|
||||
try {
|
||||
@@ -101,6 +103,7 @@ class PluginRepository extends BaseRepository
|
||||
|
||||
public function doUpdate(Plugin $plugin)
|
||||
{
|
||||
$plugin->update(['status' => Plugin::STATUS_UPDATING]);
|
||||
$packageName = $plugin->package_name;
|
||||
try {
|
||||
$output = $this->execComposerUpdate($plugin);
|
||||
|
||||
Reference in New Issue
Block a user