Skip to content

Commit 00cda14

Browse files
authored
Unpark all pages by slug (#5004)
1 parent cca5019 commit 00cda14

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
### Fixes
1414

15+
* Let the `@apostrophecms/page:unpark` task unpark all parked pages with the given slug, not just the first one.
1516
* Exclude unknown page types from the page manager.
1617

1718
## 4.19.0 (2025-07-09)

modules/@apostrophecms/page/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2649,7 +2649,7 @@ database.`);
26492649
}
26502650
const slug = argv._[1];
26512651
const count = await self.apos.doc.db
2652-
.updateOne({ slug }, { $unset: { parked: 1 } });
2652+
.updateMany({ slug }, { $unset: { parked: 1 } });
26532653
if (!count) {
26542654
throw 'No page with that slug was found.';
26552655
}

0 commit comments

Comments
 (0)