Merge remote-tracking branch 'refs/remotes/origin/fix/databank-laat-toevoegen-van-meerdere-studenten-met-dezelfde-username-toe-#153' into feat/user-routes
# Conflicts: # backend/src/controllers/students.ts # backend/src/controllers/teachers.ts # backend/src/exceptions.ts # backend/src/interfaces/student.ts # backend/src/routes/router.ts # backend/src/routes/students.ts # backend/src/services/students.ts # backend/src/services/teachers.ts # frontend/src/controllers/controllers.ts
This commit is contained in:
		
						commit
						7b65d2a5b8
					
				
					 78 changed files with 1939 additions and 1094 deletions
				
			
		|  | @ -1,25 +1,22 @@ | |||
| import { useQuery } from '@tanstack/vue-query'; | ||||
| import { getThemeController } from '@/controllers/controllers'; | ||||
| import {type MaybeRefOrGetter, toValue} from "vue"; | ||||
| import { useQuery } from "@tanstack/vue-query"; | ||||
| import { getThemeController } from "@/controllers/controllers"; | ||||
| import { type MaybeRefOrGetter, toValue } from "vue"; | ||||
| 
 | ||||
| const themeController = getThemeController(); | ||||
| 
 | ||||
| export const useThemeQuery = (language: MaybeRefOrGetter<string>) => { | ||||
|     return useQuery({ | ||||
|         queryKey: ['themes', language], | ||||
| export const useThemeQuery = (language: MaybeRefOrGetter<string>) => | ||||
|     useQuery({ | ||||
|         queryKey: ["themes", language], | ||||
|         queryFn: () => { | ||||
|             const lang = toValue(language); | ||||
|             return themeController.getAll(lang); | ||||
|         }, | ||||
|         enabled: () => !!toValue(language), | ||||
|         enabled: () => Boolean(toValue(language)), | ||||
|     }); | ||||
| }; | ||||
| 
 | ||||
| export const useThemeHruidsQuery = (themeKey: string | null) => { | ||||
|     return useQuery({ | ||||
|         queryKey: ['theme-hruids', themeKey], | ||||
| export const useThemeHruidsQuery = (themeKey: string | null) => | ||||
|     useQuery({ | ||||
|         queryKey: ["theme-hruids", themeKey], | ||||
|         queryFn: () => themeController.getHruidsByKey(themeKey!), | ||||
|         enabled: !!themeKey, | ||||
|         enabled: Boolean(themeKey), | ||||
|     }); | ||||
| }; | ||||
| 
 | ||||
|  |  | |||
		Reference in a new issue
	
	 Gabriellvl
						Gabriellvl