mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
Update settingsUpdate function
This commit is contained in:
@@ -169,7 +169,7 @@ class Settings extends Model
|
||||
public static function settingsUpdate(array $data = []): void
|
||||
{
|
||||
foreach ($data as $key => $value) {
|
||||
self::query()->where('setting', $key)->update(['value' => \is_array($value) ? implode(', ', $value) : $value]);
|
||||
self::query()->where('name', $key)->update(['value' => \is_array($value) ? implode(', ', $value) : $value]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user