@@ -61,6 +61,7 @@ type DecodedLogModel struct {
6161// @Param page query int false "Page number for pagination"
6262// @Param limit query int false "Number of items per page" default(5)
6363// @Param aggregate query []string false "List of aggregate functions to apply"
64+ // @Param force_consistent_data query bool false "Force consistent data at the expense of query speed"
6465// @Success 200 {object} api.QueryResponse{data=[]LogModel}
6566// @Failure 400 {object} api.Error
6667// @Failure 401 {object} api.Error
@@ -85,6 +86,7 @@ func GetLogs(c *gin.Context) {
8586// @Param page query int false "Page number for pagination"
8687// @Param limit query int false "Number of items per page" default(5)
8788// @Param aggregate query []string false "List of aggregate functions to apply"
89+ // @Param force_consistent_data query bool false "Force consistent data at the expense of query speed"
8890// @Success 200 {object} api.QueryResponse{data=[]LogModel}
8991// @Failure 400 {object} api.Error
9092// @Failure 401 {object} api.Error
@@ -111,6 +113,7 @@ func GetLogsByContract(c *gin.Context) {
111113// @Param page query int false "Page number for pagination"
112114// @Param limit query int false "Number of items per page" default(5)
113115// @Param aggregate query []string false "List of aggregate functions to apply"
116+ // @Param force_consistent_data query bool false "Force consistent data at the expense of query speed"
114117// @Success 200 {object} api.QueryResponse{data=[]DecodedLogModel}
115118// @Failure 400 {object} api.Error
116119// @Failure 401 {object} api.Error
@@ -154,14 +157,15 @@ func handleLogsRequest(c *gin.Context, contractAddress, signature string, eventA
154157
155158 // Prepare the QueryFilter
156159 qf := storage.QueryFilter {
157- FilterParams : queryParams .FilterParams ,
158- ContractAddress : contractAddress ,
159- Signature : signatureHash ,
160- ChainId : chainId ,
161- SortBy : queryParams .SortBy ,
162- SortOrder : queryParams .SortOrder ,
163- Page : queryParams .Page ,
164- Limit : queryParams .Limit ,
160+ FilterParams : queryParams .FilterParams ,
161+ ContractAddress : contractAddress ,
162+ Signature : signatureHash ,
163+ ChainId : chainId ,
164+ SortBy : queryParams .SortBy ,
165+ SortOrder : queryParams .SortOrder ,
166+ Page : queryParams .Page ,
167+ Limit : queryParams .Limit ,
168+ ForceConsistentData : queryParams .ForceConsistentData ,
165169 }
166170
167171 // Initialize the QueryResult
0 commit comments