<?php
// +----------------------------------------------------------------------
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2024 http://www.tensent.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
// +----------------------------------------------------------------------
namespace Modules\Wechat\Listeners;

use Modules\Member\Events\MemberDelete;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Modules\Wechat\Models\MemberSocial;

class MemberDeletes implements ShouldQueue{

	public function handle(MemberDelete $event){
		$uid = $event->uid;

		MemberSocial::where('member_id', $uid)->delete();

		return true;
	}
}