Ignore:
Timestamp:
01/08/21 00:35:56 (3 years ago)
Author:
Vzdra <vladko.zdravkovski@…>
Branches:
master
Children:
4cec0a3
Parents:
509cb95
Message:

added dummy data for user skills and fixed bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/it/finki/tinki/web/controller/RegisterController.java

    r509cb95 ra8e8545  
    4040                                             @RequestParam String name,
    4141                                             @RequestParam String surname,
    42                                              @RequestParam List<Integer> retainedSkills,
    43                                              @RequestParam List<Integer> skillsToLearn){
     42                                             @RequestParam List<Long> retainedSkills,
     43                                             @RequestParam List<Long> skillsToLearn){
    4444
    4545        List<Skill> retained = this.skillService.returnSkillsBasedOnId(retainedSkills);
     
    5353            response.put("error", "There was an error when trying to register user.");
    5454        }else{
    55             List<Job> jobs = this.workService.getAllJobs();
    56             List<Project> projects = this.workService.getAllProjects();
    57             List<Internship> internships = this.workService.getAllInternships();
    58 
    59             jobs.forEach(job -> {
    60                 this.matchmakerService.setUpUserJobMatches(job, (User) k);
    61             });
    62 
    63             projects.forEach(project -> {
    64                 this.matchmakerService.setUpUserProjectMatches(project, (User) k);
    65             });
    66 
    67             internships.forEach(internship -> {
    68                 this.matchmakerService.setUpUserInternshipMatches(internship, (User) k);
    69             });
    70 
    7155            response.put("success", "Registration completed successfully.");
    7256        }
     
    9579
    9680    @RequestMapping(path = "/company", method = RequestMethod.POST)
    97     private Map<String, String> registerTeam(@RequestParam String email,
    98                                              @RequestParam String password,
    99                                              @RequestParam String name,
    100                                              @RequestParam String country,
    101                                              @RequestParam String city,
    102                                              @RequestParam String street){
     81    private Map<String, String> registeCompany(@RequestParam String email,
     82                                               @RequestParam String password,
     83                                               @RequestParam String name,
     84                                               @RequestParam String country,
     85                                               @RequestParam String city,
     86                                               @RequestParam String street){
    10387
    10488        Account k = this.accountService.registerCompany(email, password, name, country, city, street);
Note: See TracChangeset for help on using the changeset viewer.