Skip to content

Commit

Permalink
🤖 style: prettify code
Browse files Browse the repository at this point in the history
  • Loading branch information
mlbrgl authored and github-actions[bot] committed Jan 23, 2024
1 parent 82bebf4 commit 7fc5a2b
Show file tree
Hide file tree
Showing 3 changed files with 534 additions and 529 deletions.
15 changes: 9 additions & 6 deletions db/wpdb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import {
import { TOPICS_CONTENT_GRAPH } from "../settings/clientSettings.js"
import { GdocPost } from "./model/Gdoc/GdocPost.js"
import { Link } from "./model/Link.js"
import {SiteNavigationStatic} from "../site/SiteNavigation.js"
import { SiteNavigationStatic } from "../site/SiteNavigation.js"

let _knexInstance: Knex

Expand Down Expand Up @@ -332,11 +332,14 @@ export const isPostCitable = async (post: FullPost): Promise<boolean> => {
return entries.some((category) => {
return (
category.entries.some((entry) => entry.slug === post.slug) ||
(category.subcategories ?? []).some((subcategory: CategoryWithEntries) => {
return subcategory.entries.some(
(subCategoryEntry) => subCategoryEntry.slug === post.slug
)
})
(category.subcategories ?? []).some(
(subcategory: CategoryWithEntries) => {
return subcategory.entries.some(
(subCategoryEntry) =>
subCategoryEntry.slug === post.slug
)
}
)
)
})
}
Expand Down
Loading

0 comments on commit 7fc5a2b

Please sign in to comment.