@xuda.io/account_module 1.2.2018 → 1.2.2020

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/index_ms.mjs +3 -2
  2. package/package.json +1 -1
package/index_ms.mjs CHANGED
@@ -36,7 +36,7 @@ let queue={}
36
36
  const send_to_queue =async function(ms_method, ...args) {
37
37
 
38
38
  const queue_id=Date.now()
39
- queue[queue_id]= new Promise(()=>{
39
+ queue[queue_id]= new Promise((resolve,reject)=>{
40
40
 
41
41
  global[`_${global.module_in}_ch`].sendToQueue(
42
42
  'account_module',
@@ -44,7 +44,8 @@ const send_to_queue =async function(ms_method, ...args) {
44
44
  JSON.stringify({
45
45
  ms_method,
46
46
  data: args,
47
- cb:`_account_module-${global.module_in}_ch`
47
+ cb:`_account_module-${global.module_in}_ch`,
48
+ queue_id
48
49
  })
49
50
  )
50
51
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.2018",
3
+ "version": "1.2.2020",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {