lsc hai 1 mes
pai
achega
e418ab6ca0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,