Skip to content

Commit

Permalink
Fix valid subscription treated as expired
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Hurlenko committed Jul 2, 2024
1 parent 8efc373 commit b5d26c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ impl OreillyClient<Unauthenticated> {
.context("Failed to parse trial expiration date")?
.naive_local()
} else {
return Err(crate::error::OrlyError::SubscriptionExpired);
// If subscription is not canceled AND not trial - assume the subscription is active
return Ok(());
};

info!("Subscription expiration: {}", expiration);
Expand Down

0 comments on commit b5d26c0

Please sign in to comment.