Fix addTeamMember query alias mismatch - qNew.ID should be qNew.EmployeeID
This commit is contained in:
parent
3cd7bbb8b7
commit
d5dab8f9c5
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ try {
|
||||||
|
|
||||||
qNew = queryTimed("SELECT LAST_INSERT_ID() AS EmployeeID", {}, { datasource: "payfrit" });
|
qNew = queryTimed("SELECT LAST_INSERT_ID() AS EmployeeID", {}, { datasource: "payfrit" });
|
||||||
|
|
||||||
apiAbort({ "OK": true, "MESSAGE": "Team member added", "EmployeeID": qNew.ID });
|
apiAbort({ "OK": true, "MESSAGE": "Team member added", "EmployeeID": qNew.EmployeeID });
|
||||||
|
|
||||||
} catch (any e) {
|
} catch (any e) {
|
||||||
apiAbort({ "OK": false, "ERROR": "server_error", "MESSAGE": e.message });
|
apiAbort({ "OK": false, "ERROR": "server_error", "MESSAGE": e.message });
|
||||||
|
|
|
||||||
Reference in a new issue