Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Universal-Omega authored Feb 22, 2025
1 parent f6a48ae commit cd1086c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions includes/Services/CreateWikiNotificationsManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use MessageLocalizer;
use Miraheze\CreateWiki\ConfigNames;
use UserMailer;
use Wikimedia\Rdbms\IConnectionProvider;

class CreateWikiNotificationsManager {

Expand Down Expand Up @@ -45,7 +44,7 @@ class CreateWikiNotificationsManager {
private string $type;

public function __construct(
private readonly IConnectionProvider $connectionProvider,
private readonly CreateWikiDatabaseUtils $databaseUtils,
private readonly MessageLocalizer $messageLocalizer,
private readonly ServiceOptions $options,
private readonly UserFactory $userFactory
Expand Down Expand Up @@ -74,7 +73,7 @@ private function getFromName(): string {
* @param string $wiki
*/
public function notifyBureaucrats( array $data, string $wiki ): void {
$dbr = $this->connectionProvider->getReplicaDatabase( $wiki );
$dbr = $this->databaseUtils->getRemoteWikiReplicaDB( $wiki );

$bureaucrats = $dbr->newSelectQueryBuilder()
->select( [ 'user_email', 'user_name' ] )
Expand Down

0 comments on commit cd1086c

Please sign in to comment.