|
@ -144,7 +144,7 @@ async function list (ctx) { |
|
|
...p, |
|
|
...p, |
|
|
pomsProject: corBind, |
|
|
pomsProject: corBind, |
|
|
structure: returnStruc, |
|
|
structure: returnStruc, |
|
|
pushCount: corLogCount ? corLogCount.count : 0, |
|
|
pushCount: corLogCount ? corLogCount.dataValues.count : 0, |
|
|
receiverPepUser: corReceiver |
|
|
receiverPepUser: corReceiver |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
@ -185,7 +185,7 @@ async function edit (ctx) { |
|
|
if (repeatRes) { |
|
|
if (repeatRes) { |
|
|
throw `已有名称为[${name}]的同名策略` |
|
|
throw `已有名称为[${name}]的同名策略` |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (pushId) { |
|
|
if (pushId) { |
|
|
await models.AlarmPushConfig.update(storageData, { |
|
|
await models.AlarmPushConfig.update(storageData, { |
|
|
where: { |
|
|
where: { |
|
|