fix: Return employee_emails instead of employee (#19085)

fix: Return employee_emails instead of employee
This commit is contained in:
Suraj Shetty 2019-09-17 13:50:42 +05:30 committed by GitHub
commit f9069a9873
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@ def get_employees_with_number(number):
employee_emails = [employee.user_id for employee in employees]
frappe.cache().hset('employees_with_number', number, employee_emails)
return employee
return employee_emails
def set_caller_information(doc, state):
'''Called from hooks on creation of Lead or Contact'''