mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Merge pull request #12888 from appwrite/fix/github-callback-missing-provider-filter
Scope GitHub App installation queries by provider
This commit is contained in:
2 files changed
+3
-1
No files matched your search
@@ -111,7 +111,8 @@ class Get extends Action
|
||||
|
||||
$installation = $dbForPlatform->findOne('installations', [
|
||||
Query::equal('providerInstallationId', [$providerInstallationId]),
|
||||
Query::equal('projectInternalId', [$projectInternalId])
|
||||
Query::equal('projectInternalId', [$projectInternalId]),
|
||||
Query::equal('provider', ['github'])
|
||||
]);
|
||||
|
||||
$personal = false;
|
||||
|
||||
@@ -113,6 +113,7 @@ class Create extends Action
|
||||
do {
|
||||
$installationQueries = [
|
||||
Query::equal('providerInstallationId', [$providerInstallationId]),
|
||||
Query::equal('provider', ['github']),
|
||||
Query::limit(1000),
|
||||
];
|
||||
if ($installationCursor !== null) {
|
||||
|
||||
Reference in new issue
Block a user