Skip to content

Commit 78bb6ab

Browse files
docs(billing): clarify cancelAt JSDoc — Date not "Unix date"
Copilot review: "Unix date" was ambiguous. Changed to "Date (converted from Stripe's cancel_at Unix seconds)" for clarity.
1 parent 57ab388 commit 78bb6ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/billing/models/billing.subscription.model.mongoose.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ const SubscriptionMongoose = new Schema(
135135
default: null,
136136
},
137137
/**
138-
* Unix date when the subscription will actually be cancelled (null when no pending cancel).
139-
* Sourced from Stripe's cancel_at (seconds) → converted to Date in the webhook handler.
138+
* Date when the subscription will actually be cancelled (null when no pending cancel).
139+
* Sourced from Stripe's cancel_at (Unix seconds) → converted to Date in the webhook handler.
140140
*/
141141
cancelAt: {
142142
type: Date,

0 commit comments

Comments
 (0)