From 58a3bdf3adb4cc3e7d4be6603c0e8f4163376505 Mon Sep 17 00:00:00 2001 From: Karim Sakhibgareev Date: Mon, 3 Jun 2024 16:05:53 +0100 Subject: [PATCH] Update src/rest-client-v5.ts Co-authored-by: Tiago --- src/rest-client-v5.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rest-client-v5.ts b/src/rest-client-v5.ts index 040ed50..7f92c80 100644 --- a/src/rest-client-v5.ts +++ b/src/rest-client-v5.ts @@ -1379,10 +1379,10 @@ export class RestClientV5 extends BaseRestClient { * * DANGER: BE CAREFUL! The sub API key used to call this interface will be invalid immediately. */ - deleteSubApiKey(apikey?: string): Promise> { + deleteSubApiKey(params?: { apikey?: string; ): Promise> { return this.postPrivate( '/v5/user/delete-sub-api', - apikey ? { apikey } : undefined, + params, ); }