diff --git a/Backend/API/handlers/newHotdrop.go b/Backend/API/handlers/newHotdrop.go index f7daeb6a55d5b6dbc522bcba8c4077610ca5f4a5..860f0447d6950566ce695a6602543f2a36e64b68 100644 --- a/Backend/API/handlers/newHotdrop.go +++ b/Backend/API/handlers/newHotdrop.go @@ -63,7 +63,7 @@ func NewHotDrop(w http.ResponseWriter, r *http.Request) { department := 0 //check if it is intended to have a department, if not, skip if data.DepartmentName != "" && data.DepartmentName != " " { - department, err = other.GetDepartmentIdByName(data.DepartmentName, building) + department, err = other.GetDepartmentIdByName(data.DepartmentName, CompID) if err != nil { log.Println(err.Error()) w.WriteHeader(http.StatusBadRequest)