Fix the profilepicture url issue (it wasn't sent to the db)

add a prototype of a more generic uploadfile function in uploads.js

makes the distinction between a master cursus and a bachelor cursus in display
This commit is contained in:
2024-03-29 10:55:59 +01:00
parent 94f12f0a86
commit a3c9d6a7c0
6 changed files with 46 additions and 14 deletions

View File

@ -9,10 +9,10 @@ let request = await getRegisters(props.target);
const cursus = await getcurriculum(request.curriculum);
function getPP(){
if(request.profilePicture === null){
if(request.profilePictureUrl === null){
return "/Clyde.png"
}
return request.profilePicture;
return request.profilePictureUrl;
}
</script>