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

/characters/{character_id}/planets/{planet_id}/ "last_cycle_start" for factories triggered even though there are not enough resources #1394

Open
2 of 6 tasks
Teravibes opened this issue Sep 11, 2024 · 0 comments

Comments

@Teravibes
Copy link

Teravibes commented Sep 11, 2024

Bug

When a factory gets resources even if they are not enough to start a cycle it automatically updates last_cycle_start in the json even though the cycle didn't actually start.

The response shows an example.

The factory is a P2 for coolant. It requires 40 water and 40 electrolytes. The response shows that the contents of the factory has amount 20 of water which in the case is not enough to start a cycle but it did update the "last_cycle_start":"2024-09-11T13:08:24Z".

Body

{
"contents":[
{
"amount":20,
"type_id":3645
}
],
"last_cycle_start":"2024-09-11T13:08:24Z",
"latitude":0.6998928785324097,
"longitude":4.845121383666992,
"pin_id":1046484501534,
"schematic_id":66,
"type_id":2494
},

Checklist

Check all boxes that apply to this issue:

  • Bug description is provided
  • Request path is provided
  • Response status code is provided
  • Response headers are provided
  • Response body is provided
  • Expected response is provided
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

No branches or pull requests

1 participant