ledger
ledger copied to clipboard
StartTime property not working
Describe the bug According to openapi schema https://github.com/formancehq/ledger/blob/main/openapi/v1.yaml#L516
We should use startTime but in code https://github.com/formancehq/ledger/blob/main/internal/api/v1/controllers_transactions.go#L59 is not supported.
Another thing is
if startTime := r.URL.Query().Get("start_time"); startTime != "" {
clauses = append(clauses, query.Gte("date", startTime))
}
Column date not exists
To Reproduce Make request to transaction with time frames
Expected behavior Transactions are filtered
Environment (please complete the following information): Main master of ledger