lsc 1 maand geleden
bovenliggende
commit
e418ab6ca0
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      pbl.js

+ 1 - 1
pbl.js

@@ -1016,7 +1016,7 @@ router.route("/getGraphs2").all(async (req, res, next) => {
 router.route("/getEntitiesAndRelationships").all(async (req, res, next) => {
     if (req.body[0]) {
         try {
-            const { documentId } = req.body[0];
+            const { page = 1, limit = 10, documentId } = req.body[0];
             const offset = (page - 1) * limit;
             const response = await client.documents.listEntities({
                 id: documentId,