changed amount to salaryAmount

This commit was merged in pull request #28.
This commit is contained in:
Chinenye Nmoh
2025-06-20 13:49:10 +01:00
parent bcd9513a10
commit 79b22e6d4f
4 changed files with 16 additions and 18 deletions
+4
View File
@@ -121,6 +121,10 @@ def salary_detect():
payload = request.get_json()
logger.info("Calling Salary Detect endpoint")
if payload is None:
logger.warning("No payload received in request")
return ResponseHelper.error("Missing request payload", status_code=400)
# Step 1: Try to add new salary data
try:
new_salary = SalaryService.add_salary_data(payload)