Skip to content

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

Open
@Teravibes

Description

@Teravibes

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions