feat: update activation expiration handling and enhance payload structure in transaction services
This commit is contained in:
+3
-1
@@ -121,7 +121,9 @@ export class PartnerLicenseChargeTransactionService {
|
||||
try {
|
||||
createdTransaction = await tx.licenseChargeTransaction.create({
|
||||
data: {
|
||||
activation_expires_at: data.activated_expires_at,
|
||||
activation_expires_at: data.activated_expires_at
|
||||
? new Date(data.activated_expires_at).toISOString()
|
||||
: new Date().toISOString(),
|
||||
tracking_code: generateTrackingCode('LIC', this.TRACKING_CODE_LENGTH),
|
||||
purchased_count: data.quantity,
|
||||
partner: { connect: { id: partner_id } },
|
||||
|
||||
Reference in New Issue
Block a user