lsc 2 tháng trước cách đây
mục cha
commit
bfcc6067aa
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      pbl.js

+ 2 - 1
pbl.js

@@ -217,6 +217,7 @@ router.route("/getFileOpen").all(async (req, res, next) => {
         p.unshift(_mysqlLabor[0], _mysqlLabor[1], "getFileOpen");
         mysql.usselect(p, async function (ret) {
             let data = ret[0];
+            let user = ret[1];
             // const array = data.map(item => item.documentid);
             const array = data.map(item => item.documentid);
             try {
@@ -234,7 +235,7 @@ router.route("/getFileOpen").all(async (req, res, next) => {
                     return { ...item, ...correspondingDoc };
                 });
 
-                res.status(200).json({ result: mergedData });
+                res.status(200).json({ result: mergedData, user: user });
             } catch (error) {
                 res.status(500).json({ error: error instanceof Error ? error.message : "An error occurred" });
             }