This commit is contained in:
@@ -367,13 +367,6 @@ func (h *PackageActivationHandler) updateDeviceSuspendedStatus(ctx context.Conte
|
||||
}
|
||||
}
|
||||
|
||||
if err := tx.WithContext(ctx).
|
||||
Model(&model.Device{}).
|
||||
Where("id = ?", deviceID).
|
||||
Update("status", constants.DeviceStatusSuspended).Error; err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if len(cardIDs) > 0 {
|
||||
if err := tx.WithContext(ctx).
|
||||
Model(&model.IotCard{}).
|
||||
|
||||
Reference in New Issue
Block a user