changed amount to salaryAmount
This commit was merged in pull request #28.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user