Return 0 when no machines exist instead of throwing an error. This fixes the authentication error on fresh installations where the machines table is empty. |
||
|---|---|---|
| .. | ||
| bills.js | ||
| customInfoRequests.js | ||
| funding.js | ||
| login.js | ||
| machineGroups.js | ||
| machines.js | ||
| pairing.js | ||
| restriction-level.js | ||
| server-logs.js | ||
| supervisor.js | ||
| transactions.js | ||
| triggers.js | ||