Fix archive functionality: change default includeArchived to false
This commit is contained in:
@@ -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'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user