Skip to content

Commit d61397c

Browse files
Change the result structure in get quotas method
1 parent fa76da1 commit d61397c

File tree

1 file changed

+4
-3
lines changed
  • aggregation_mode/gateway/src

1 file changed

+4
-3
lines changed

aggregation_mode/gateway/src/http.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,10 @@ impl GatewayServer {
361361
let formatted_time_left = get_time_left_day_formatted();
362362

363363
HttpResponse::Ok().json(AppResponse::new_sucessfull(serde_json::json!({
364-
"amount-submitted": daily_tasks_by_address,
365-
"amount-left": (state.config.max_daily_proofs_per_user - daily_tasks_by_address),
366-
"quotas-renewal": formatted_time_left.as_str()
364+
"proofs_submitted": daily_tasks_by_address,
365+
"quota_limit": state.config.max_daily_proofs_per_user,
366+
"quota_remaining": (state.config.max_daily_proofs_per_user - daily_tasks_by_address),
367+
"quota_resets_in": formatted_time_left.as_str()
367368
})))
368369
}
369370
}

0 commit comments

Comments
 (0)