Commit 230e90cf by 王悦

fix

parent ff4e462a
......@@ -10,6 +10,7 @@ module.exports = (db, DataTypes) => {
pushActionType: DataTypes.STRING,//调用参数
pushtimes:DataTypes.INTEGER,//推送次数
pushStatus:DataTypes.STRING,//推送状态
error:DataTypes.STRING,//错误信息
}, {
paranoid: false,//假的删除
underscored: true,
......
......@@ -41,9 +41,10 @@ class GatewaypushlogService extends ServiceBase {
}
icloginfo.pushtimes += 1;
}
await this.update(icloginfo);
this.update(icloginfo);
}catch (e) {
console.error(e)
icloginfo.error=JSON.stringify(e)
this.update(icloginfo);
this.dingClient.gatewayPushError({message:"Exception",api:"center-channel/taskAliIcapi",e})
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment