Merge pull request #9771 from jen13501/ldap-page-pause
Fix pagePause=true bug
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-catalog-backend-module-ldap': patch
|
||||
---
|
||||
|
||||
Fixed bug in Catalog LDAP module to acknowledge page events to continue receiving entries if pagePause=true
|
||||
@@ -106,6 +106,12 @@ export class LdapClient {
|
||||
reject(new Error(errorString(e)));
|
||||
});
|
||||
|
||||
res.on('page', (_result, cb) => {
|
||||
if (cb) {
|
||||
cb();
|
||||
}
|
||||
});
|
||||
|
||||
res.on('end', r => {
|
||||
if (!r) {
|
||||
reject(new Error('Null response'));
|
||||
|
||||
Reference in New Issue
Block a user