fix old API, crypto impl now used objects

This commit is contained in:
Sebastian 2022-04-06 12:08:49 -03:00
parent f33d9dad47
commit bb56d61424
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -69,7 +69,7 @@ export class SynchronousCryptoWorker {
private async handleRequest(
operation: string,
id: number,
args: string[],
req: unknown,
): Promise<void> {
const impl = this.cryptoImplR;
@ -80,7 +80,7 @@ export class SynchronousCryptoWorker {
let result: any;
try {
result = await (impl as any)[operation](...args);
result = await (impl as any)[operation](impl, req);
} catch (e: any) {
logger.error(`error during operation '${operation}': ${e}`);
return;