Open peterbogdan opened 3 months ago
Hello
I see there are some inconsistency in Active nodes when getting them using the API:
{api}/api/v1//nodes/{env}/active/
Looking at the code it is querying for the field updated_at: https://github.com/jmpsec/osctrl/blob/main/nodes/nodes.go#L241
updated_at
Maybe we can use the helper function from here to have better results: https://github.com/jmpsec/osctrl/blob/main/nodes/utils.go#L9
Hello
I see there are some inconsistency in Active nodes when getting them using the API:
Looking at the code it is querying for the field
updated_at
: https://github.com/jmpsec/osctrl/blob/main/nodes/nodes.go#L241Maybe we can use the helper function from here to have better results: https://github.com/jmpsec/osctrl/blob/main/nodes/utils.go#L9