We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f5934e commit 2e54d4dCopy full SHA for 2e54d4d
src/Migration/Destinations/Appwrite.php
@@ -1942,6 +1942,15 @@ protected function createSubscriber(Subscriber $resource): void
1942
$resource->getProviderType(),
1943
]),
1944
]));
1945
+
1946
+ $totalAttribute = match ($resource->getProviderType()) {
1947
+ 'email' => 'emailTotal',
1948
+ 'sms' => 'smsTotal',
1949
+ 'push' => 'pushTotal',
1950
+ default => throw new \Exception('Unknown provider type: ' . $resource->getProviderType()),
1951
+ };
1952
1953
+ $this->database->increaseDocumentAttribute('topics', $resource->getTopicId(), $totalAttribute);
1954
}
1955
1956
/**
0 commit comments