We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9863398 commit e48932dCopy full SHA for e48932d
public/takeedit.php
@@ -242,7 +242,7 @@ function bark($msg) {
242
do_log("[UPDATE_TORRENT]: $sql");
243
$affectedRows = sql_query($sql) or sqlerr(__FILE__, __LINE__);
244
$torrentInfo = \App\Models\Torrent::query()->find($id);
245
-$torrentInfo->extra()->update($extraUpdate);
+$torrentInfo->extra()->updateOrCreate(['torrent_id' => $id], $extraUpdate);
246
fire_event("torrent_updated", $torrentInfo, $torrentOld);
247
$dateTimeStringNow = date("Y-m-d H:i:s");
248
0 commit comments