feat:rock增加软删除和恢复删除
This commit is contained in:
@@ -111,7 +111,7 @@ func (s *RockService) ImportAllUpstreamPackages(ctx context.Context, maxPackages
|
||||
}
|
||||
importedIDs := make([]int64, 0, len(ids))
|
||||
if len(ids) > 0 {
|
||||
if err := s.db.WithContext(ctx).Model(&model.RockToken{}).
|
||||
if err := s.db.WithContext(ctx).Unscoped().Model(&model.RockToken{}).
|
||||
Where("package_id IN ?", ids).
|
||||
Group("package_id").
|
||||
Pluck("package_id", &importedIDs).Error; err != nil {
|
||||
|
||||
Reference in New Issue
Block a user