style: fix linting issues met Prettier
This commit is contained in:
		
							parent
							
								
									902518f9b1
								
							
						
					
					
						commit
						3760b3f6f3
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		|  | @ -20,7 +20,7 @@ import { fetchStudents } from './students.js'; | ||||||
| import { ServerErrorException } from '../exceptions/server-error-exception.js'; | import { ServerErrorException } from '../exceptions/server-error-exception.js'; | ||||||
| import { BadRequestException } from '../exceptions/bad-request-exception.js'; | import { BadRequestException } from '../exceptions/bad-request-exception.js'; | ||||||
| import { ConflictException } from '../exceptions/conflict-exception.js'; | import { ConflictException } from '../exceptions/conflict-exception.js'; | ||||||
| import { PostgreSqlExceptionConverter } from "@mikro-orm/postgresql"; | import { PostgreSqlExceptionConverter } from '@mikro-orm/postgresql'; | ||||||
| 
 | 
 | ||||||
| export async function fetchAssignment(classid: string, assignmentNumber: number): Promise<Assignment> { | export async function fetchAssignment(classid: string, assignmentNumber: number): Promise<Assignment> { | ||||||
|     const classRepository = getClassRepository(); |     const classRepository = getClassRepository(); | ||||||
|  |  | ||||||
|  | @ -102,15 +102,15 @@ | ||||||
|             { cid: clsId, an: num }, |             { cid: clsId, an: num }, | ||||||
|             { |             { | ||||||
|                 onSuccess: (data) => { |                 onSuccess: (data) => { | ||||||
|                     if (data?.assignment){ |                     if (data?.assignment) { | ||||||
|                         window.location.reload(); |                         window.location.reload(); | ||||||
|                     } |                     } | ||||||
|                     showSnackbar(t("success") ,"success"); |                     showSnackbar(t("success"), "success"); | ||||||
|                 }, |                 }, | ||||||
|                 onError: (e) => { |                 onError: (e) => { | ||||||
|                     showSnackbar(t("failed") + ": " + e.response.data.error || e.message, "error"); |                     showSnackbar(t("failed") + ": " + e.response.data.error || e.message, "error"); | ||||||
|                 }, |                 }, | ||||||
|             } |             }, | ||||||
|         ); |         ); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Lint Action
						Lint Action