Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4bff574 authored by Ronak Patel's avatar Ronak Patel
Browse files

changed folder path #

parent a148eb1c
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ class UpdateBlacklistedDomains extends Command {
			$this->userService->updateBlacklistedDomains();
			$output->writeln('Updated blacklisted domains for creation.');
		} catch (\Throwable $th) {
			$output->writeln('Error while updating blacklisted domains. Error: '.$th->getMessage());
			$output->writeln('Error while updating blacklisted domains.');
		}
		return 1;
	}
+2 −11
Original line number Diff line number Diff line
@@ -597,17 +597,8 @@ class UserService {
	 */
	public function updateBlacklistedDomains(): void {
		$blacklisted_domain_url = self::BLACKLISTED_DOMAINS_URL;
		try {
		$json_data = file_get_contents($blacklisted_domain_url);
			if ($json_data === false) {
				$this->logger->error("Failed to fetch data from URL: $blacklisted_domain_url");
				throw new \RuntimeException("Failed to fetch data from URL: $blacklisted_domain_url");
			}
		$this->setBlacklistedDomainsData($json_data);
		} catch (Exception $e) {
			// Log any exceptions that occur during the process
			$this->logger->logException($e, ['message' => 'Failed to update blacklisted domains.']);
		}
	}

	/**