style: fix linting issues met Prettier
This commit is contained in:
		
							parent
							
								
									1aa823bf5c
								
							
						
					
					
						commit
						d51ebae322
					
				
					 2 changed files with 6 additions and 8 deletions
				
			
		|  | @ -12,13 +12,11 @@ import { fetchGroup } from '../../../services/groups.js'; | |||
| import { requireFields } from '../../../controllers/error-helper.js'; | ||||
| import { SubmissionDTO } from '@dwengo-1/common/interfaces/submission'; | ||||
| 
 | ||||
| export const onlyAllowSubmitter = authorize( | ||||
|     (auth: AuthenticationInfo, req: AuthenticatedRequest) => { | ||||
| export const onlyAllowSubmitter = authorize((auth: AuthenticationInfo, req: AuthenticatedRequest) => { | ||||
|     const submittedFor = (req.body as SubmissionDTO).submitter.username; | ||||
|     const submittedBy = auth.username; | ||||
|     return submittedFor === submittedBy; | ||||
|     } | ||||
| ); | ||||
| }); | ||||
| 
 | ||||
| export const onlyAllowIfHasAccessToSubmission = authorize(async (auth: AuthenticationInfo, req: AuthenticatedRequest) => { | ||||
|     const { hruid: lohruid, id: submissionNumber } = req.params; | ||||
|  |  | |||
|  | @ -1,6 +1,6 @@ | |||
| <script setup lang="ts"> | ||||
|     import { ref, watch } from "vue"; | ||||
|     import { useI18n } from 'vue-i18n'; | ||||
|     import { useI18n } from "vue-i18n"; | ||||
| 
 | ||||
|     const { t } = useI18n(); | ||||
| 
 | ||||
|  |  | |||
		Reference in a new issue
	
	 Lint Action
						Lint Action