Skip to content

Commit

Permalink
perf(core): Add removed ids to response in applyCollectionFiltersInte…
Browse files Browse the repository at this point in the history
…rnal
  • Loading branch information
monrostar committed Jul 29, 2024
1 parent dd8ccca commit a93a964
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core/src/service/services/collection.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
];
}

/**
Expand Down

0 comments on commit a93a964

Please sign in to comment.