Skip to content

Commit

Permalink
fix(frontier): only allow gt 0 amount billing usage
Browse files Browse the repository at this point in the history
Signed-off-by: Kush Sharma <[email protected]>
  • Loading branch information
kushsharma committed Jul 24, 2024
1 parent de55807 commit fecbdc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raystack/frontier/v1beta1/models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fecbdc1

Please sign in to comment.