refactor(update-backend): streamline .env file handling process
Some checks failed
Deploy to production / deploy (push) Failing after 1m58s
Some checks failed
Deploy to production / deploy (push) Failing after 1m58s
- Replaced the previous method of copying .env files with a direct installation from a specified source path. - Improved permissions and ownership settings for the .env file to enhance security. - Added user feedback for successful file transfer and verification steps.
This commit is contained in:
@@ -1933,6 +1933,8 @@ export default class VocabService {
|
||||
|
||||
if (correctIndices.length === 0) return false;
|
||||
|
||||
const options = Array.isArray(parsedQuestionData?.options) ? parsedQuestionData.options : [];
|
||||
|
||||
const correctTexts = correctIndices
|
||||
.map((i) => options[i])
|
||||
.filter((opt) => opt !== undefined && opt !== null);
|
||||
|
||||
Reference in New Issue
Block a user