fix issues

This commit is contained in:
xiaomlove
2025-05-12 14:37:41 +07:00
parent 9a864b817a
commit 8b2c6cea2f
6 changed files with 15 additions and 3 deletions

View File

@@ -346,6 +346,8 @@ class Update extends Install
Artisan::call("upgrade:migrate_torrents_table_text_column");
Language::updateTransStatus();
$this->addSetting('main.complain_enabled', 'yes');
$this->addSetting('image_hosting.driver', 'local');
$this->addSetting('permission.user_token_allowed', json_encode(TokenRepository::listUserTokenPermissions(false)));
}
if (!$redis->exists(Setting::USER_TOKEN_PERMISSION_ALLOWED_CACHE_KRY)) {
Setting::updateUserTokenPermissionAllowedCache(TokenRepository::listUserTokenPermissions(false));