mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
fix(notify): real delete for email and mobile
This commit is contained in:
@@ -59,6 +59,9 @@ func (s repullFailedReason) String() string {
|
||||
func (self *RepullSuncontactTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject) {
|
||||
config := obj.(*models.SConfig)
|
||||
if !utils.IsInStringArray(config.Type, PullContactType) {
|
||||
if del, _ := self.GetParams().Bool("deleted"); del {
|
||||
config.RealDelete(ctx, self.GetUserCred())
|
||||
}
|
||||
self.SetStageComplete(ctx, nil)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user