plugin sticky promotion do not change torrent original field

This commit is contained in:
xiaomlove
2022-06-10 01:25:13 +08:00
parent d95979b579
commit 35f78b4b77
7 changed files with 35 additions and 14 deletions

View File

@@ -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]);
}