mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
plugin sticky promotion do not change torrent original field
This commit is contained in:
@@ -39,7 +39,7 @@ use JeroenG\Explorer\Infrastructure\Scout\ElasticEngine;
|
||||
use League\Flysystem\StorageAttributes;
|
||||
use Nexus\Database\NexusDB;
|
||||
use Nexus\Imdb\Imdb;
|
||||
use NexusPlugin\PostLike\PostLike;
|
||||
use NexusPlugin\PostLike\PostLikeRepository;
|
||||
use NexusPlugin\StickyPromotion\Models\StickyPromotion;
|
||||
use NexusPlugin\StickyPromotion\Models\StickyPromotionParticipator;
|
||||
use Rhilip\Bencode\Bencode;
|
||||
@@ -77,8 +77,9 @@ class Test extends Command
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
$r = StickyPromotionParticipator::query()->first();
|
||||
dd($r->created_at);
|
||||
$torrent = Torrent::query()->first();
|
||||
$torrent->name = Carbon::now()->toDateTimeString();
|
||||
$torrent->update(['seeders' => 100]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user