Skip to content
This repository was archived by the owner on Oct 30, 2023. It is now read-only.

Commit a6351b4

Browse files
committed
add createdAt field in package
1 parent 5d080a6 commit a6351b4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

service/src/services/checkout/checkout.class.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ var createFunction = async (function(data,params, app) {
164164
var packageObj = await (makePackageObj(thisSubscription, checkout_res.id, null, userDetail))
165165
var u_id = userDetail.data._id
166166
// axios.post(config1.api_url + 'user-subscription', packageObj)
167+
packageObj.createdAt = new Date()
167168
app.service('user-subscription').create(packageObj)
168169
.then(res => {
169170
let planName = res.id.substr(res.id.length - 5) + "-" + packageObj.name + "-" + moment(packageObj.expiredOn).format('MM-DD-YYYY')

0 commit comments

Comments
 (0)