MaiXinRong %!s(int64=4) %!d(string=hai) anos
pai
achega
6b2aca0059
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/lib/tender_info.js

+ 1 - 1
app/lib/tender_info.js

@@ -35,7 +35,7 @@ class TenderInfo {
         if (this.stage) return;
         this.stages = await this._getValidStages(this.tender.id);
         this.stage = this.stages[0];
-        await this.ctx.service.stage.doCheckStage(this.stage);
+        if (this.stage) await this.ctx.service.stage.doCheckStage(this.stage);
     }
 
     async _getStageBillsData () {