diff options
author | Florian Dold <florian@dold.me> | 2022-10-05 16:01:59 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-10-05 16:01:59 +0200 |
commit | 99ace8b7d24416f2b184d66006c89b61935e132e (patch) | |
tree | ad801a936ed6c05c4fb3a16be324f0de50654d8e /packages/taler-wallet-core/src/crypto/workers/worker-common.ts | |
parent | 70d37e4ed30e69c4b3ba2d31a50fd61d82b91252 (diff) | |
download | wallet-core-99ace8b7d24416f2b184d66006c89b61935e132e.tar.xz |
integration tests: make test-wallet-cryptoworker pass
Diffstat (limited to 'packages/taler-wallet-core/src/crypto/workers/worker-common.ts')
-rw-r--r-- | packages/taler-wallet-core/src/crypto/workers/worker-common.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/crypto/workers/worker-common.ts b/packages/taler-wallet-core/src/crypto/workers/worker-common.ts index 67af68f35..dae6d1e28 100644 --- a/packages/taler-wallet-core/src/crypto/workers/worker-common.ts +++ b/packages/taler-wallet-core/src/crypto/workers/worker-common.ts @@ -37,6 +37,7 @@ export async function processRequestWithImpl( reqMsg: CryptoWorkerRequestMessage, impl: TalerCryptoInterfaceR, ): Promise<CryptoWorkerResponseMessage> { + logger.info(`processing crypto request ${j2s(reqMsg)}`); if (typeof reqMsg !== "object") { logger.error("request must be an object"); return { @@ -85,7 +86,7 @@ export async function processRequestWithImpl( let responseMsg: CryptoWorkerResponseMessage; try { - const result = await (impl as any)[operation](impl, reqMsg); + const result = await (impl as any)[operation](impl, reqMsg.req); responseMsg = { type: "success", result, id }; } catch (e: any) { logger.error(`error during operation: ${e.stack ?? e.toString()}`); |