webfast 0.1.90 → 0.1.92
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.
@@ -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) {
|