ledger icon indicating copy to clipboard operation
ledger copied to clipboard

StartTime property not working

Open cv65kr opened this issue 1 year ago • 0 comments

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

cv65kr avatar Jun 13 '24 11:06 cv65kr