feat(bisaya): update household and children age rules to 14, adjust related instructions and migration
All checks were successful
Deploy to production / deploy (push) Successful in 3m14s
All checks were successful
Deploy to production / deploy (push) Successful in 3m14s
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
async up(queryInterface) {
|
||||
await queryInterface.sequelize.query(`
|
||||
UPDATE community.vocab_grammar_exercise AS exercise
|
||||
SET instruction = 'Frage: „Wo ist deine Tasche?“ Bitte danach: „Nimm deine Tasche.“'
|
||||
FROM community.vocab_course_lesson AS lesson
|
||||
WHERE exercise.lesson_id = lesson.id
|
||||
AND lesson.course_id = 1
|
||||
AND lesson.lesson_number = 30
|
||||
AND lesson.title = 'Kinder & Familie'
|
||||
AND exercise.exercise_number = 2
|
||||
AND exercise.title = 'Kindersatz ergänzen';
|
||||
`);
|
||||
},
|
||||
|
||||
async down() {}
|
||||
};
|
||||
@@ -1334,7 +1334,7 @@ const BISAYA_EXERCISES = {
|
||||
{
|
||||
exerciseTypeId: 1,
|
||||
title: 'Nachfragen ergänzen',
|
||||
instruction: 'Fülle die Lücken.',
|
||||
instruction: 'Frage: „Wo ist deine Tasche?“ Bitte danach: „Nimm deine Tasche.“',
|
||||
questionData: {
|
||||
type: 'gap_fill',
|
||||
text: 'Hinay-hinay {gap}. Unsay pasabot {gap}?',
|
||||
|
||||
@@ -96,7 +96,7 @@ function calcAge(birthdate) {
|
||||
const FAMILY_AGE = Object.freeze({
|
||||
MIN_WOOING: 10,
|
||||
MIN_MARRIAGE: 14,
|
||||
MIN_HOUSEHOLD_AND_CHILDREN: 16,
|
||||
MIN_HOUSEHOLD_AND_CHILDREN: 14,
|
||||
});
|
||||
|
||||
async function getFalukantUserOrFail(hashedId) {
|
||||
|
||||
Reference in New Issue
Block a user