|
|
@@ -430,7 +430,7 @@ func (c *Client) ParseProjectUsageFromWebhook(payload []byte) (*cemodels.Project
|
|
|
|
|
|
for _, feature := range subscription.Plan.Features {
|
|
|
// look for slug of "cpus" and "memory"
|
|
|
- maxLimit := uint(feature.MaxLimit)
|
|
|
+ maxLimit := uint(feature.FeatureSpec.MaxLimit)
|
|
|
switch feature.Feature.Slug {
|
|
|
case FeatureSlugCPU:
|
|
|
usage.ResourceCPU = maxLimit
|