AWS
This commit is contained in:
parent
dfe82f23ee
commit
c331c2ddc3
|
@ -0,0 +1,4 @@
|
||||||
|
option_settings:
|
||||||
|
- namespace: aws:elasticbeanstalk:container:nodejs
|
||||||
|
option_name: NodeCommand
|
||||||
|
value: "npm start"
|
|
@ -166,7 +166,7 @@ module.exports.postRazorpay = async (req, res, next) => {
|
||||||
name: user.firstName + " " + user.lastName,
|
name: user.firstName + " " + user.lastName,
|
||||||
email: user.email,
|
email: user.email,
|
||||||
receipt: response.receipt,
|
receipt: response.receipt,
|
||||||
date_purchased: response.created_at,
|
date_purchased: Date.now(),
|
||||||
});
|
});
|
||||||
if (coupon && coupon.numAllowed > 0) {
|
if (coupon && coupon.numAllowed > 0) {
|
||||||
coupon.numAllowed = coupon.numAllowed - 1;
|
coupon.numAllowed = coupon.numAllowed - 1;
|
||||||
|
|
|
@ -23,6 +23,7 @@ const orderSchema = new Schema({
|
||||||
orderId: {
|
orderId: {
|
||||||
type: String,
|
type: String,
|
||||||
},
|
},
|
||||||
|
date_purchased: Date,
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = mongoose.model("Order", orderSchema);
|
module.exports = mongoose.model("Order", orderSchema);
|
||||||
|
|
Loading…
Reference in New Issue