Fix archive functionality: change default includeArchived to false
This commit is contained in:
@@ -59,7 +59,7 @@ export function getDatabase() {
|
||||
return db
|
||||
}
|
||||
|
||||
export function getAllSermons(limit?: number, includeArchived: boolean = true) {
|
||||
export function getAllSermons(limit?: number, includeArchived: boolean = false) {
|
||||
const db = getDatabase()
|
||||
const whereClause = includeArchived ? '' : 'WHERE archived = 0'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user