corebasic 1.0.70 → 1.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/libs/features.js +2 -2
- package/package.json +1 -1
package/libs/features.js
CHANGED
|
@@ -94,9 +94,9 @@ export const start = async (app, url, file) => {
|
|
|
94
94
|
res.status(500).json({ message: "Failed to retreive data" })
|
|
95
95
|
}
|
|
96
96
|
})
|
|
97
|
-
app.get('/users/transactions', async (req, res) => {
|
|
97
|
+
app.get('/users/:id/transactions', async (req, res) => {
|
|
98
98
|
try {
|
|
99
|
-
res.json({ data: await Dip.query(`users.txns.${
|
|
99
|
+
res.json({ data: await Dip.query(`users.txns.${req.params.id}`, {}, { $orderby: { date: -1 } }) })
|
|
100
100
|
} catch {
|
|
101
101
|
res.status(500).json({ message: "Failed to retreive data" })
|
|
102
102
|
}
|