@pebble-finances/api
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "@pebble-finances/api", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "", | ||
@@ -13,2 +13,3 @@ "main": "src/index.js", | ||
"@pebble-finances/db": "^0.1.0", | ||
"@pebble-finances/worker-registry": "^0.0.3", | ||
"body-parser": "^1.18.3", | ||
@@ -20,3 +21,3 @@ "cors": "^2.8.5", | ||
}, | ||
"gitHead": "122fdd9fcfdb76b11e5de154e3efc378f8fc17d6" | ||
"gitHead": "6f3b9f41ed1b525f59636dac7e15ca6061c1071b" | ||
} |
const { transaction } = require('../utils/transaction'); | ||
const { workers } = require('@pebble-finances/worker-registry'); | ||
const authMiddleware = require('../auth/middleware'); | ||
@@ -6,8 +7,6 @@ | ||
app.get('/account-types/list', authMiddleware, (req, res) => { | ||
const { email } = req.user; | ||
transaction( | ||
res, | ||
async () => { | ||
res.send([]); | ||
res.send(workers().map(worker => worker.descriptor)); | ||
} | ||
@@ -14,0 +13,0 @@ ); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16145
7
+ Added@pebble-finances/worker-itau@0.0.3(transitive)
+ Added@pebble-finances/worker-registry@0.0.3(transitive)