style: fix linting issues met Prettier
This commit is contained in:
		
							parent
							
								
									8e2643f596
								
							
						
					
					
						commit
						d88add8351
					
				
					 9 changed files with 48 additions and 52 deletions
				
			
		|  | @ -1,17 +1,17 @@ | |||
| import {TeacherInvitation} from '../entities/classes/teacher-invitation.entity.js'; | ||||
| import {mapToUserDTO} from './user.js'; | ||||
| import {TeacherInvitationDTO} from '@dwengo-1/common/interfaces/teacher-invitation'; | ||||
| import {getTeacherInvitationRepository} from '../data/repositories'; | ||||
| import {Teacher} from '../entities/users/teacher.entity'; | ||||
| import {Class} from '../entities/classes/class.entity'; | ||||
| import {ClassStatus} from "@dwengo-1/common/util/class-join-request"; | ||||
| import { TeacherInvitation } from '../entities/classes/teacher-invitation.entity.js'; | ||||
| import { mapToUserDTO } from './user.js'; | ||||
| import { TeacherInvitationDTO } from '@dwengo-1/common/interfaces/teacher-invitation'; | ||||
| import { getTeacherInvitationRepository } from '../data/repositories'; | ||||
| import { Teacher } from '../entities/users/teacher.entity'; | ||||
| import { Class } from '../entities/classes/class.entity'; | ||||
| import { ClassStatus } from '@dwengo-1/common/util/class-join-request'; | ||||
| 
 | ||||
| export function mapToTeacherInvitationDTO(invitation: TeacherInvitation): TeacherInvitationDTO { | ||||
|     return { | ||||
|         sender: mapToUserDTO(invitation.sender), | ||||
|         receiver: mapToUserDTO(invitation.receiver), | ||||
|         classId: invitation.class.classId!, | ||||
|         status: invitation.status | ||||
|         status: invitation.status, | ||||
|     }; | ||||
| } | ||||
| 
 | ||||
|  | @ -20,7 +20,7 @@ export function mapToTeacherInvitationDTOIds(invitation: TeacherInvitation): Tea | |||
|         sender: invitation.sender.username, | ||||
|         receiver: invitation.receiver.username, | ||||
|         classId: invitation.class.classId!, | ||||
|         status: invitation.status | ||||
|         status: invitation.status, | ||||
|     }; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Reference in a new issue
	
	 Lint Action
						Lint Action