Fix pagePause true bug

Signed-off-by: Jen Evans <jenevan@rei.com>
This commit is contained in:
Jen Evans
2022-02-23 10:49:29 -08:00
parent e007c4fd7c
commit 66aa05c23c
2 changed files with 11 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-backend-module-ldap': patch
---
Fixed bug in Catalog LDAP module to ack 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'));