diff --git a/packages/core/src/service/services/collection.service.ts b/packages/core/src/service/services/collection.service.ts index 655c57f1ab..be72695f4f 100644 --- a/packages/core/src/service/services/collection.service.ts +++ b/packages/core/src/service/services/collection.service.ts @@ -725,7 +725,10 @@ export class CollectionService implements OnModuleInit { return [...toAddIds, ...toRemoveIds]; } - return existingVariantsQb.getRawMany().then(results => results.map(result => result.id)); + return [ + existingVariantsQb.getRawMany().then(results => results.map(result => result.id)), + ...toRemoveIds, + ]; } /**