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

add schedule seeder helper #179

Merged
merged 2 commits into from
Mar 26, 2024
Merged

Conversation

recursivetree
Copy link
Contributor

Problem

@joseph Null reported that his schedules get reset after restarting. This indeed seems to be the case: https://github.com/eveseat/eveapi/blob/5.0.x/src/database/seeders/ScheduleSeeder.php#L184-L187

Solution

On discord, we discussed that existing schedules shouldn't be changed, only missing ones inserted. While looking at this, I noticed that this happens for both eveapi and web. Their seeder are 99% identical in terms of logic for inserting schedules. Since plugins sometimes also need to schedule command, I decided it is worthy it to write a helper for this. This helper belongs in services as far as I know.

@Crypta-Eve Crypta-Eve merged commit 1504474 into eveseat:5.0.x Mar 26, 2024
3 checks passed
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 this pull request may close these issues.

2 participants