From 8dfdb6a22342f30d4c5ee861c817da02055a6af1 Mon Sep 17 00:00:00 2001 From: Alexandr Kazachenko Date: Tue, 3 Dec 2024 17:12:56 +0500 Subject: [PATCH] fix: create logger instance inside of the function (#167) --- src/types/model.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/types/model.ts b/src/types/model.ts index 4bcba5c..42ab571 100644 --- a/src/types/model.ts +++ b/src/types/model.ts @@ -289,12 +289,11 @@ function replacer(_key: any, value: any) { } } -const loadOwnerOrdersLogger = getLogger("loadOwnerOrders"); - async function loadOwnerOrders( storage: DBService, network: string ): Promise { + const loadOwnerOrdersLogger = getLogger("loadOwnerOrders"); // Get the owner orders const db = storage.getDB(); const str = await db.get(