refactor event

This commit is contained in:
xiaomlove
2024-04-25 02:15:56 +08:00
parent 52c3365873
commit ae29693549
15 changed files with 57 additions and 35 deletions

View File

@@ -448,7 +448,7 @@ $meiliSearch = new \App\Repositories\MeiliSearchRepository();
$meiliSearch->doImportFromDatabase($id);
//trigger event
executeCommand("event:fire --name=torrent_created --id=$id", "string", true, false);
fire_event("torrent_created", $id);
//===notify people who voted on offer thanks CoLdFuSiOn :)
if ($is_offer)