dashboard: try/catch + fix $TZ$ placeholder index in /api/dashboard
Clarifies the previous auto-committed change (87f3c8a):
- wrap handler in try/catch: DB errors now return 500 JSON instead of
an unhandled rejection
- fix $TZ$ placeholder numbering: '$' + (n ? n : 0) + 1 concatenated
the string before adding 1, producing '$01' instead of '$1'
- reindent cacheWrap callback body
This commit is contained in: