Pull SQL ID from SET

This commit is contained in:
2025-07-20 22:07:54 -07:00
parent 68686487c6
commit 2e4d1f358c
+1 -1
View File
@@ -28,7 +28,7 @@ namespace BoredCareers.Controllers {
if (newCompany) { if (newCompany) {
Company? test = await _databaseService.GetCompany(company.ID); Company? test = await _databaseService.GetCompany(company.ID);
if (test == null) { if (test == null) {
await _databaseService.SetCompany(company); company.ID = await _databaseService.SetCompany(company);
await _databaseService.SetEmployee(new Employee() { await _databaseService.SetEmployee(new Employee() {
AccountID = getLoggedInUserID(), AccountID = getLoggedInUserID(),
Company = company Company = company