Skip to content

LimitsUpdateOptions is incorrect type #813

@barjin

Description

@barjin

The API accepts requests with at least one of maxMonthlyUsageUsd | dataRetentionDays fields. The client options type requires both to be present.

See the client type:

export type LimitsUpdateOptions = Pick<Limits, 'maxMonthlyUsageUsd' | 'dataRetentionDays'>;

See the validation logic in API:

https://github.com/apify/apify-core/blob/1bde0ab9ebd6aee88414de69fe1425431d7bdd25/src/api/src/routes/users/limits.ts#L242

Metadata

Metadata

Assignees

No one assigned

    Labels

    t-toolingIssues with this label are in the ownership of the tooling team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions