From 9d288486d7293893d57a6c9d6894110d1e2248e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Barrag=C3=A1n=20Merino?= Date: Tue, 22 Jul 2025 12:32:42 +0200 Subject: [PATCH] :bug: Subscription current period dates could be null (#6931) `current-period-start` and `current-period-end` can be null if the invoice has not yet been created in stripe. This happens after the subscription is created, before the webhook is sent. --- backend/src/app/srepl/cli.clj | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/src/app/srepl/cli.clj b/backend/src/app/srepl/cli.clj index bb3750e046..e9c441d240 100644 --- a/backend/src/app/srepl/cli.clj +++ b/backend/src/app/srepl/cli.clj @@ -205,9 +205,8 @@ [:trial-start [:maybe ::sm/timestamp]] [:cancel-at [:maybe ::sm/timestamp]] [:canceled-at [:maybe ::sm/timestamp]] - - [:current-period-end ::sm/timestamp] - [:current-period-start ::sm/timestamp] + [:current-period-end [:maybe ::sm/timestamp]] + [:current-period-start [:maybe ::sm/timestamp]] [:cancel-at-period-end :boolean] [:cancellation-details