Refactor updateFoodCareExercises function to optimize database queries and improve code clarity

- Replaced the Sequelize findAll method with a raw SQL query to fetch Bisaya courses along with native language information, enhancing performance.
- Updated variable names for consistency and clarity, ensuring better readability of the code.
- Adjusted the handling of course owner IDs to align with the new query structure, improving data integrity.
This commit is contained in:
Torsten Schulz (local)
2026-01-21 13:22:03 +01:00
parent a21a2314d7
commit 3018b1f2e1
4 changed files with 77 additions and 18 deletions

View File

@@ -408,7 +408,8 @@
"recordingError": "Aufnahme-Fehler",
"recognizedText": "Erkannter Text",
"speechRecognitionNotSupported": "Speech Recognition wird von diesem Browser nicht unterstützt. Bitte verwende Chrome oder Edge.",
"keywords": "Schlüsselwörter"
"keywords": "Schlüsselwörter",
"switchBackToMultipleChoice": "Zurück zu Multiple Choice"
}
}
}

View File

@@ -408,7 +408,8 @@
"recordingError": "Recording error",
"recognizedText": "Recognized Text",
"speechRecognitionNotSupported": "Speech Recognition is not supported by this browser. Please use Chrome or Edge.",
"keywords": "Keywords"
"keywords": "Keywords",
"switchBackToMultipleChoice": "Switch back to Multiple Choice"
}
}
}