mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
parent
cf48d4ef5c
commit
bb13845773
1 changed files with 1 additions and 0 deletions
|
@ -212,6 +212,7 @@ export class CollectionsService {
|
|||
}
|
||||
|
||||
private async removePostFromAllCollections(postId: string) {
|
||||
// @NOTE: can be optimized by having a "getByPostId" method on the collections repository
|
||||
const collections = await this.collectionsRepository.getAll();
|
||||
|
||||
for (const collection of collections) {
|
||||
|
|
Loading…
Add table
Reference in a new issue