From e12e84c1dea3f2afc91088b000d78c046f05f970 Mon Sep 17 00:00:00 2001 From: Jan Kuzelik Date: Tue, 3 Dec 2024 16:59:39 +0100 Subject: [PATCH] Add TODO issue, fix validator --- src/resource_clients/run.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/resource_clients/run.ts b/src/resource_clients/run.ts index b8406124..198691aa 100644 --- a/src/resource_clients/run.ts +++ b/src/resource_clients/run.ts @@ -142,13 +142,14 @@ export class RunClient extends ResourceClient { } /** - * TODO: docs + * TODO: docs url + * https://github.com/apify/apify-client-js/issues/614 */ async charge(options: RunChargeOptions): Promise>> { ow(options, ow.object.exactShape({ eventName: ow.string, count: ow.optional.number, - idempotencyKey: ow.optional.number, + idempotencyKey: ow.optional.string, })); const count = options.count ?? 1;