mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 02:01:33 +00:00
Update missed Settings model usage
This commit is contained in:
@@ -247,7 +247,7 @@ class Binaries
|
||||
*/
|
||||
public function logIndexerStart(): void
|
||||
{
|
||||
Settings::query()->where('setting', '=', 'last_run_time')->update(['value' => now()]);
|
||||
Settings::query()->where('name', '=', 'last_run_time')->update(['value' => now()]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -104,7 +104,7 @@ class PopulateAniDB
|
||||
echo 'AniDB: Error getting response.'.PHP_EOL;
|
||||
} elseif (preg_match('/\<error\>Banned\<\/error\>/', $apiResponse)) {
|
||||
$this->banned = true;
|
||||
Settings::query()->where(['section' => 'APIs', 'subsection' => 'AniDB', 'name' => 'banned'])->update(['value' => time()]);
|
||||
Settings::query()->where(['name' => 'banned'])->update(['value' => time()]);
|
||||
} elseif (preg_match('/\<error\>Anime not found\<\/error\>/', $apiResponse)) {
|
||||
echo "AniDB : Anime not yet on site. Remove until next update.\n";
|
||||
} elseif ($AniDBAPIXML = new \SimpleXMLElement($apiResponse)) {
|
||||
@@ -389,7 +389,7 @@ class PopulateAniDB
|
||||
*/
|
||||
private function setLastUpdated(): void
|
||||
{
|
||||
Settings::query()->where(['section' => 'APIs', 'subsection' => 'AniDB', 'name' => 'last_full_update'])->update(['value' => time()]);
|
||||
Settings::query()->where(['name' => 'last_full_update'])->update(['value' => time()]);
|
||||
}
|
||||
|
||||
private function updateAniDBInfoEps($aniDbId, array $AniDBInfoArray = []): string
|
||||
|
||||
+2
-2
@@ -184,7 +184,7 @@ class Tmux
|
||||
|
||||
public function updateItem($setting, $value): int
|
||||
{
|
||||
return Settings::query()->where('setting', '=', $setting)->update(['value' => $value]);
|
||||
return Settings::query()->where('name', '=', $setting)->update(['value' => $value]);
|
||||
}
|
||||
|
||||
public function microtime_float(): float
|
||||
@@ -415,7 +415,7 @@ class Tmux
|
||||
public function startRunning(): void
|
||||
{
|
||||
if (! $this->isRunning()) {
|
||||
Settings::query()->where(['section' => 'site', 'subsection' => 'tmux', 'setting' => 'running'])->update(['value' => 1]);
|
||||
Settings::query()->where(['name' => 'running'])->update(['value' => 1]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Generated
+6
-6
@@ -15587,16 +15587,16 @@
|
||||
},
|
||||
{
|
||||
"name": "larastan/larastan",
|
||||
"version": "v2.9.9",
|
||||
"version": "v2.9.10",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/larastan/larastan.git",
|
||||
"reference": "148faa138f0d8acb7d85f4a55693d3e13b6048d2"
|
||||
"reference": "9e7233d88f4f10796fadb8a2d85c5f2b55277c76"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/larastan/larastan/zipball/148faa138f0d8acb7d85f4a55693d3e13b6048d2",
|
||||
"reference": "148faa138f0d8acb7d85f4a55693d3e13b6048d2",
|
||||
"url": "https://api.github.com/repos/larastan/larastan/zipball/9e7233d88f4f10796fadb8a2d85c5f2b55277c76",
|
||||
"reference": "9e7233d88f4f10796fadb8a2d85c5f2b55277c76",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -15666,7 +15666,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/larastan/larastan/issues",
|
||||
"source": "https://github.com/larastan/larastan/tree/v2.9.9"
|
||||
"source": "https://github.com/larastan/larastan/tree/v2.9.10"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -15686,7 +15686,7 @@
|
||||
"type": "patreon"
|
||||
}
|
||||
],
|
||||
"time": "2024-10-15T19:41:22+00:00"
|
||||
"time": "2024-10-19T23:04:40+00:00"
|
||||
},
|
||||
{
|
||||
"name": "laravel/pint",
|
||||
|
||||
@@ -43,5 +43,5 @@ foreach ($objects as $filestoprocess => $nzbFile) {
|
||||
}
|
||||
}
|
||||
|
||||
Settings::query()->where(['setting' => 'nzbsplitlevel'])->update(['value' => $argv[1]]);
|
||||
Settings::query()->where(['name' => 'nzbsplitlevel'])->update(['value' => $argv[1]]);
|
||||
$consoleTools->overWrite("Processed $iFilesProcessed nzbs in ".$time->diffForHumans()."\n");
|
||||
|
||||
Reference in New Issue
Block a user