ellisran 1 miesiąc temu
rodzic
commit
4562cb3c64
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      app/service/tender_info.js

+ 1 - 0
app/service/tender_info.js

@@ -519,6 +519,7 @@ module.exports = app => {
          */
         async getAllTenderShenpiInfo(tenderIds) {
             // const defaultInfo = await this.getDefaultInfo(tenderId);
+            if (!tenderIds || tenderIds.length === 0) return [];
             const infos = await this.getAllDataByCondition({ columns: ['tid', 'shenpi'], where: { tid: tenderIds } });
             const shenpiInfos = [];
             if (!infos || infos.length === 0) return shenpiInfos;