fix: error import
This commit is contained in:
		
							parent
							
								
									6edb5f144d
								
							
						
					
					
						commit
						6c1aeb2331
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -1,4 +1,3 @@ | ||||||
| import { languageMap } from 'dwengo-1-common/util/language'; |  | ||||||
| import { LearningObjectIdentifier } from '../../../entities/content/learning-object-identifier'; | import { LearningObjectIdentifier } from '../../../entities/content/learning-object-identifier'; | ||||||
| import { fetchSubmission } from '../../../services/submissions'; | import { fetchSubmission } from '../../../services/submissions'; | ||||||
| import { AuthenticatedRequest } from '../authenticated-request'; | import { AuthenticatedRequest } from '../authenticated-request'; | ||||||
|  | @ -6,6 +5,7 @@ import { AuthenticationInfo } from '../authentication-info'; | ||||||
| import { authorize } from './auth-checks'; | import { authorize } from './auth-checks'; | ||||||
| import { FALLBACK_LANG } from '../../../config'; | import { FALLBACK_LANG } from '../../../config'; | ||||||
| import { mapToUsername } from '../../../interfaces/user'; | import { mapToUsername } from '../../../interfaces/user'; | ||||||
|  | import { languageMap } from "@dwengo-1/common/util/language"; | ||||||
| 
 | 
 | ||||||
| export const onlyAllowSubmitter = authorize( | export const onlyAllowSubmitter = authorize( | ||||||
|     (auth: AuthenticationInfo, req: AuthenticatedRequest) => (req.body as { submitter: string }).submitter === auth.username |     (auth: AuthenticationInfo, req: AuthenticatedRequest) => (req.body as { submitter: string }).submitter === auth.username | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Gabriellvl
						Gabriellvl