From 7baf09b951a53a008932ea38f81110731eeea4a8 Mon Sep 17 00:00:00 2001 From: Igor Artamonov Date: Mon, 16 Sep 2024 20:38:26 +0100 Subject: [PATCH] problem: invalid import --- packages/web/src/wrapped/AuthClient.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/web/src/wrapped/AuthClient.ts b/packages/web/src/wrapped/AuthClient.ts index e7617e2..3e63060 100644 --- a/packages/web/src/wrapped/AuthClient.ts +++ b/packages/web/src/wrapped/AuthClient.ts @@ -14,7 +14,6 @@ import * as auth_rpc from '../generated/AuthServiceClientPb'; import * as auth_pb from "../generated/auth_pb"; import {classFactory} from "./Factory"; import {CredentialsContext} from "../credentials"; -import {callSingle} from "@emeraldpay/api-node/lib/channel"; export class AuthClient { readonly client: auth_rpc.AuthClient; @@ -46,7 +45,7 @@ export class AuthClient { issueToken(req: IssueTokenRequest): Promise { const request = this.convert.issueTokenRequest(req); - const call = callSingle(this.client.issueToken.bind(this.client), this.convert.issuedTokenResponse); + const call = callPromise(this.client.issueToken.bind(this.client), this.convert.issuedTokenResponse); return publishToPromise(readOnce(this.channel, call, request, this.retries)); }