From 3db0adc9893f6ba96b3732fcf2e1903498ab89ad Mon Sep 17 00:00:00 2001 From: Andrei Date: Fri, 15 Sep 2023 21:12:41 +0700 Subject: [PATCH] refactor: cache serialize --- packages/sdk/src/common/decorators/cache.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/sdk/src/common/decorators/cache.ts b/packages/sdk/src/common/decorators/cache.ts index 106fb248..ca441d71 100644 --- a/packages/sdk/src/common/decorators/cache.ts +++ b/packages/sdk/src/common/decorators/cache.ts @@ -5,11 +5,9 @@ import { callConsoleMessage } from './utils.js'; const serializeArgs = (args: any[]) => args .map((arg: any) => - isBigint(arg) - ? arg.toString() - : JSON.stringify(arg, (_key, value) => { - return isBigint(value) ? value.toString() : value; - }), + JSON.stringify(arg, (_key, value) => { + return isBigint(value) ? value.toString() : value; + }), ) .join(':');