mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
set correct duration for subscribing to remote calendar
This commit is contained in:
parent
2400bd48d1
commit
c8028b8e60
@ -59,7 +59,7 @@ class MapAndSubscribeUserCalendarCommand extends Command
|
|||||||
$offset = 0;
|
$offset = 0;
|
||||||
/** @var DateInterval $interval the interval before the end of the expiration */
|
/** @var DateInterval $interval the interval before the end of the expiration */
|
||||||
$interval = new DateInterval('P1D');
|
$interval = new DateInterval('P1D');
|
||||||
$expiration = (new DateTimeImmutable('now'))->add(new DateInterval('PT15M'));
|
$expiration = (new DateTimeImmutable('now'))->add(new DateInterval($input->getOption('subscription-duration')));
|
||||||
$total = $this->userRepository->countByMostOldSubscriptionOrWithoutSubscriptionOrData($interval);
|
$total = $this->userRepository->countByMostOldSubscriptionOrWithoutSubscriptionOrData($interval);
|
||||||
$created = 0;
|
$created = 0;
|
||||||
$renewed = 0;
|
$renewed = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user