style: fix linting issues met Prettier

This commit is contained in:
Lint Action 2025-03-30 12:54:22 +00:00
parent 56d34adbc0
commit 7ad808cf3b
34 changed files with 244 additions and 214 deletions

View file

@ -6,7 +6,7 @@ import { EnvVars, getEnvVar } from '../util/envvars.js';
import { Language } from '../entities/content/language.js';
import attachmentService from '../services/learning-objects/attachment-service.js';
import { NotFoundError } from '@mikro-orm/core';
import {BadRequestException} from "../exceptions/bad-request-exception.js";
import { BadRequestException } from '../exceptions/bad-request-exception.js';
function getLearningObjectIdentifierFromRequest(req: Request): LearningObjectIdentifier {
if (!req.params.hruid) {

View file

@ -8,8 +8,8 @@ import {
personalizedForGroup,
personalizedForStudent,
} from '../services/learning-paths/learning-path-personalization-util.js';
import {BadRequestException} from "../exceptions/bad-request-exception.js";
import {NotFoundException} from "../exceptions/not-found-exception.js";
import { BadRequestException } from '../exceptions/bad-request-exception.js';
import { NotFoundException } from '../exceptions/not-found-exception.js';
/**
* Fetch learning paths based on query parameters.

View file

@ -60,7 +60,7 @@ export async function createStudentHandler(req: Request, res: Response) {
if (!newUser) {
res.status(500).json({
error: 'Something went wrong while creating student'
error: 'Something went wrong while creating student',
});
return;
}