perf: 支持批量转移流水线到其他项目

This commit is contained in:
xiaojunnuo
2026-03-15 04:17:40 +08:00
parent f642e42eea
commit 8a3841f638
13 changed files with 283 additions and 36 deletions
@@ -39,6 +39,7 @@ export class NotificationService extends BaseService<NotificationEntity> {
}
return {
id: entity.id,
keyId: entity.keyId,
name: entity.name,
userId: entity.userId,
};
@@ -58,6 +59,7 @@ export class NotificationService extends BaseService<NotificationEntity> {
if(bean.isDefault){
await this.setDefault(res.id, bean.userId);
}
bean.keyId = "nt_" + utils.id.simpleNanoId();
return res
}
@@ -68,6 +70,7 @@ export class NotificationService extends BaseService<NotificationEntity> {
delete bean.userId;
delete bean.type
delete bean.keyId
const res = await super.update(bean);
if(bean.isDefault){
await this.setDefault(bean.id, old.userId);