Skip to content

Commit

Permalink
fix: restricting series counter to only include root series instead o…
Browse files Browse the repository at this point in the history
…f series and modules
  • Loading branch information
tomgobich committed Apr 28, 2024
1 parent 3b18ecf commit 4d5ba46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Controllers/Http/DashboardController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default class DashboardController {
public async index({ view }: HttpContextContract) {
const postCount = await Post.query().apply(s => s.published()).getCount()
const postSeconds = await Post.query().sum('video_seconds').first()
const seriesCount = await Collection.series().wherePublic().getCount()
const seriesCount = await Collection.series().wherePublic().whereNull('parentId').getCount()
const topicCount = await Taxonomy.query().getCount()

return view.render('studio/index', { postCount, postSeconds, seriesCount, topicCount })
Expand Down

0 comments on commit 4d5ba46

Please sign in to comment.