Fix archive functionality: change default includeArchived to false

This commit is contained in:
2025-10-02 00:00:51 -04:00
parent 591405c66f
commit f1e0ac0a93

View File

@@ -59,7 +59,7 @@ export function getDatabase() {
return db return db
} }
export function getAllSermons(limit?: number, includeArchived: boolean = true) { export function getAllSermons(limit?: number, includeArchived: boolean = false) {
const db = getDatabase() const db = getDatabase()
const whereClause = includeArchived ? '' : 'WHERE archived = 0' const whereClause = includeArchived ? '' : 'WHERE archived = 0'