Change employee to a left join

This commit is contained in:
2025-07-20 21:14:39 -07:00
parent a5573dce4e
commit fb7e37bfb0
6 changed files with 91 additions and 12 deletions
@@ -29,6 +29,10 @@ namespace BoredCareers.Controllers {
Company? test = await _databaseService.GetCompany(company.ID);
if (test == null) {
await _databaseService.SetCompany(company);
await _databaseService.SetEmployee(new Employee() {
AccountID = getLoggedInUserID(),
Company = company
});
return Ok();
}
return NotFound("The company already exists");