stuff
This commit is contained in:
+5
-1
@@ -257,10 +257,14 @@ function sanitizeColossiansStudySections(value) {
|
||||
studyQuestions: Array.isArray(item.studyQuestions)
|
||||
? item.studyQuestions.filter(question => typeof question === 'string').map(question => question.trim()).filter(Boolean).slice(0, 20)
|
||||
: [],
|
||||
checkpointPrompt: typeof item.checkpointPrompt === 'string' ? item.checkpointPrompt.trim().slice(0, 600) : '',
|
||||
checkpointQuestions: Array.isArray(item.checkpointQuestions)
|
||||
? item.checkpointQuestions.filter(question => typeof question === 'string').map(question => question.trim()).filter(Boolean).slice(0, 20)
|
||||
: [],
|
||||
...(releasedAt ? { releasedAt } : {}),
|
||||
}
|
||||
})
|
||||
.filter(item => item.title || item.summary || item.commentary || item.greekNotes.length > 0 || item.studyQuestions.length > 0 || item.passageText)
|
||||
.filter(item => item.title || item.summary || item.commentary || item.greekNotes.length > 0 || item.studyQuestions.length > 0 || item.passageText || item.checkpointPrompt || item.checkpointQuestions.length > 0)
|
||||
}
|
||||
|
||||
function sanitizeStudies(value) {
|
||||
|
||||
Reference in New Issue
Block a user