webfast 0.1.90 → 0.1.92

Sign up to get free protection for your applications and to get access to all the features.
@@ -103,15 +103,18 @@ module.exports = async function(program,json) {
103
103
  // Now we have message id set that to the order
104
104
 
105
105
  // Add update to message order thingy
106
+ let setArray = {
107
+ state : newState,
108
+ payment : paymentUUID,
109
+ messages : [telegramSend.result.uuid]
110
+ }
111
+ setArray.ref = order.ref;
106
112
 
113
+ order.state.payReqCreated = Date.now();
107
114
  const updated =await program.modules.data.update(process.env.dbName,`order`,{
108
115
  uuid : order.uuid
109
116
  },{
110
- $set: {
111
- state : newState,
112
- payment : paymentUUID,
113
- messages : [telegramSend.result.uuid]
114
- }
117
+ $set: setArray
115
118
  });
116
119
  console.log(`Telegram Send`);
117
120
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webfast",
3
- "version": "0.1.90",
3
+ "version": "0.1.92",
4
4
  "description": "WebFast! Bot Application, including TON mini-apps for makign it easy and fast to build ini-apps",
5
5
  "main": "index.js",
6
6
  "repository": {