corebasic 1.0.46 → 1.0.47

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 +2 -1
  2. package/package.json +1 -1
package/libs/features.js CHANGED
@@ -87,7 +87,8 @@ const commandAction = async (req, res, feature) => {
87
87
  let txn = req.body.txn ?? Util.uid()
88
88
  req.body.data._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.47",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {