fix: error import

This commit is contained in:
Gabriellvl 2025-04-24 10:44:54 +02:00
parent 6edb5f144d
commit 6c1aeb2331

View file

@ -1,4 +1,3 @@
import { languageMap } from 'dwengo-1-common/util/language';
import { LearningObjectIdentifier } from '../../../entities/content/learning-object-identifier';
import { fetchSubmission } from '../../../services/submissions';
import { AuthenticatedRequest } from '../authenticated-request';
@ -6,6 +5,7 @@ import { AuthenticationInfo } from '../authentication-info';
import { authorize } from './auth-checks';
import { FALLBACK_LANG } from '../../../config';
import { mapToUsername } from '../../../interfaces/user';
import { languageMap } from "@dwengo-1/common/util/language";
export const onlyAllowSubmitter = authorize(
(auth: AuthenticationInfo, req: AuthenticatedRequest) => (req.body as { submitter: string }).submitter === auth.username