@@ -94,7 +94,7 @@ class Appwrite extends Source
9494
9595 private Sites $ sites ;
9696
97- private Project $ projectService ;
97+ private Project $ project ;
9898
9999 /**
100100 * @var callable(UtopiaDocument $database|null): UtopiaDatabase
@@ -105,7 +105,7 @@ class Appwrite extends Source
105105 * @throws \Exception
106106 */
107107 public function __construct (
108- protected string $ project ,
108+ protected string $ projectId ,
109109 protected string $ endpoint ,
110110 protected string $ key ,
111111 callable $ getDatabasesDB ,
@@ -115,7 +115,7 @@ public function __construct(
115115 ) {
116116 $ this ->client = (new Client ())
117117 ->setEndpoint ($ endpoint )
118- ->setProject ($ project )
118+ ->setProject ($ projectId )
119119 ->setKey ($ key );
120120
121121 $ this ->users = new Users ($ this ->client );
@@ -124,9 +124,9 @@ public function __construct(
124124 $ this ->functions = new Functions ($ this ->client );
125125 $ this ->messaging = new Messaging ($ this ->client );
126126 $ this ->sites = new Sites ($ this ->client );
127- $ this ->projectService = new Project ($ this ->client );
127+ $ this ->project = new Project ($ this ->client );
128128
129- $ this ->headers ['x-appwrite-project ' ] = $ this ->project ;
129+ $ this ->headers ['x-appwrite-project ' ] = $ this ->projectId ;
130130 $ this ->headers ['x-appwrite-key ' ] = $ this ->key ;
131131
132132 $ this ->getDatabasesDB = $ getDatabasesDB ;
@@ -143,7 +143,7 @@ public function __construct(
143143 $ this ->reader = new DatabaseReader (
144144 $ this ->dbForProject ,
145145 $ this ->getDatabasesDB ,
146- $ this ->project
146+ $ this ->projectId
147147 );
148148 break ;
149149
@@ -2234,7 +2234,7 @@ private function reportIntegrations(array $resources, array &$report, array $res
22342234 limit: 1
22352235 );
22362236 try {
2237- $ report [Resource::TYPE_PLATFORM ] = $ this ->projectService ->listPlatforms ($ platformQueries )->total ;
2237+ $ report [Resource::TYPE_PLATFORM ] = $ this ->project ->listPlatforms ($ platformQueries )->total ;
22382238 } catch (\Throwable ) {
22392239 $ report [Resource::TYPE_PLATFORM ] = 0 ;
22402240 }
@@ -2335,7 +2335,7 @@ private function exportPlatforms(int $batchSize): void
23352335 $ queries [] = Query::cursorAfter ($ lastId );
23362336 }
23372337
2338- $ response = $ this ->projectService ->listPlatforms ($ queries );
2338+ $ response = $ this ->project ->listPlatforms ($ queries );
23392339 if ($ response ->total === 0 ) {
23402340 break ;
23412341 }
0 commit comments