Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In After Constraint, minutes frequency not working. #2575

Closed
encoderit-salman opened this issue Jun 6, 2023 · 1 comment · May be fixed by #2581
Closed

In After Constraint, minutes frequency not working. #2575

encoderit-salman opened this issue Jun 6, 2023 · 1 comment · May be fixed by #2581

Comments

@encoderit-salman
Copy link

Please review

AfterConstraint.php

return $schedule->isOnce() ? $schedule->timestamp_target->diffInHours(now()->floorSeconds()) === $schedule->delay_minutes : $schedule->timestamp_target->diffInHours(now()->floorSeconds()) > $schedule->delay_minutes;

Should be like this

return $schedule->isOnce() ? $schedule->timestamp_target->diffInMinutes(now()) >= $schedule->delay_minutes && is_null($schedule->completed_at) : $schedule->timestamp_target->diffInMinutes(now()) > $schedule->delay_minutes;
on line 46 to 48

@binaryk
Copy link
Contributor

binaryk commented Jul 3, 2024

Fixed https://github.com/BinarCode/laravel-mailator/releases/tag/6.0.1

@binaryk binaryk closed this as completed Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants