Skip to content

Commit

Permalink
fix: Pageのslugが正しく処理されないバグを修正 (できてるといいね)
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-20 committed Mar 6, 2024
1 parent 055f931 commit 15ff318
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ module.exports = function (Bookshelf) {
}
// Generate serially-numbered post slug
if (baseName === 'post') {
if (base.endsWith('@true')) {
if (base.endsWith('-true')) {
slug = slug.replace(/-true$/, '');
} else if (!options.transacting) {
const sql = `
Expand Down

0 comments on commit 15ff318

Please sign in to comment.