From fecbdc10ba9cfb77b27cdca1722d23460eabbf04 Mon Sep 17 00:00:00 2001 From: Kush Sharma Date: Wed, 24 Jul 2024 10:32:35 +0530 Subject: [PATCH] fix(frontier): only allow gt 0 amount billing usage Signed-off-by: Kush Sharma --- raystack/frontier/v1beta1/models.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raystack/frontier/v1beta1/models.proto b/raystack/frontier/v1beta1/models.proto index 3e6a786d..e568f27c 100644 --- a/raystack/frontier/v1beta1/models.proto +++ b/raystack/frontier/v1beta1/models.proto @@ -813,7 +813,7 @@ message Usage { "feature" ] }]; - int64 amount = 6 [(validate.rules).int64 = {gte: 0}]; + int64 amount = 6 [(validate.rules).int64 = {gt: 0}]; // user_id is the user that triggered this usage string user_id = 7;