Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion premium/usage.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ func (u *BatchUpdater) HasQuota(ctx context.Context) (bool, error) {
if usage.StatusCode() != http.StatusOK {
return false, fmt.Errorf("failed to get usage: %s", usage.Status())
}
return *usage.JSON200.RemainingRows > 0, nil
hasQuota := usage.JSON200.RemainingRows == nil || *usage.JSON200.RemainingRows > 0
return hasQuota, nil
}

func (u *BatchUpdater) Close() error {
Expand Down