corebasic 1.0.46 → 1.0.48

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.
Files changed (2) hide show
  1. package/libs/features.js +3 -2
  2. package/package.json +1 -1
package/libs/features.js CHANGED
@@ -85,9 +85,10 @@ export function start(app, url) {
85
85
 
86
86
  const commandAction = async (req, res, feature) => {
87
87
  let txn = req.body.txn ?? Util.uid()
88
- req.body.data._id = req.body.data._id ?? txn
88
+ let _id = req.body.data._id ?? txn
89
89
  try {
90
- await Kafka.send(`Features.${feature.topic}`, { data: req.body.data, feature: req.body.feature, txn, id: _id, date: new Date().getTime() }, _id)
90
+ let {data, feature, app, user, client, version} = req.body
91
+ await Kafka.send(`Features.${feature.topic}`, { data, feature, app, user, client, version, txn, id: _id, date: new Date().getTime() }, _id)
91
92
 
92
93
  } catch {
93
94
  throw {status: 500, message: "Failed to queue the transaction"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "corebasic",
3
3
  "type": "module",
4
- "version": "1.0.46",
4
+ "version": "1.0.48",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {