fix: lint
This commit is contained in:
		
							parent
							
								
									17dc9649c5
								
							
						
					
					
						commit
						a824cdff94
					
				
					 6 changed files with 5 additions and 11 deletions
				
			
		|  | @ -2,7 +2,6 @@ import { BaseController } from "./base-controller"; | |||
| import type { ClassDTO } from "@dwengo-1/common/interfaces/class"; | ||||
| import type { StudentsResponse } from "./students"; | ||||
| import type { AssignmentsResponse } from "./assignments"; | ||||
| import type { TeacherInvitationDTO } from "@dwengo-1/common/interfaces/teacher-invitation"; | ||||
| import type { TeachersResponse } from "@/controllers/teachers.ts"; | ||||
| import type {TeacherInvitationsResponse} from "@/controllers/teacher-invitations.ts"; | ||||
| 
 | ||||
|  |  | |||
|  | @ -17,23 +17,23 @@ import type {TeacherDTO} from "@dwengo-1/common/dist/interfaces/teacher.ts"; | |||
| const controller = new TeacherInvitationController(); | ||||
| 
 | ||||
| /** | ||||
|     all the invitations the teacher send | ||||
|     All the invitations the teacher send | ||||
| **/ | ||||
| export function useTeacherInvitationsByQuery(username: MaybeRefOrGetter<string | undefined> | ||||
| ): UseQueryReturnType<TeacherInvitationsResponse, Error> { | ||||
|     return useQuery({ | ||||
|         queryFn: computed(() => controller.getAll(toValue(username), true)), | ||||
|         queryFn: computed(async () => controller.getAll(toValue(username), true)), | ||||
|         enabled: () => Boolean(toValue(username)), | ||||
|     }) | ||||
| } | ||||
| 
 | ||||
| /** | ||||
|     all the pending invitations send to this teacher | ||||
|     All the pending invitations send to this teacher | ||||
|  */ | ||||
| export function useTeacherInvitationsForQuery(username: MaybeRefOrGetter<string | undefined> | ||||
| ): UseQueryReturnType<TeacherInvitationsResponse, Error> { | ||||
|     return useQuery({ | ||||
|         queryFn: computed(() => controller.getAll(toValue(username), false)), | ||||
|         queryFn: computed(async () => controller.getAll(toValue(username), false)), | ||||
|         enabled: () => Boolean(toValue(username)), | ||||
|     }) | ||||
| } | ||||
|  |  | |||
		Reference in a new issue
	
	 Gabriellvl
						Gabriellvl