From 1d8e6be81ed28163240cf10e4e6af766cf3b9133 Mon Sep 17 00:00:00 2001 From: simaomeyrerdooca Date: Tue, 12 Nov 2024 15:40:01 -0300 Subject: [PATCH] fix: remove mock --- src/modules/live-shop/LiveShopRepositoryJson.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/live-shop/LiveShopRepositoryJson.ts b/src/modules/live-shop/LiveShopRepositoryJson.ts index 5085d87..f7a9472 100644 --- a/src/modules/live-shop/LiveShopRepositoryJson.ts +++ b/src/modules/live-shop/LiveShopRepositoryJson.ts @@ -1,9 +1,8 @@ -import liveShopJsonMock from '../../mocks/live-shop/live-shop.json' import { LiveShop, LiveShopFilter } from './LiveShopTypes' export class LiveShopRepositoryJson { static async getOne({ filter }: { filter: LiveShopFilter }, fields?: string[]): Promise { - const liveShop = liveShopJsonMock + const liveShop = shop_ctx.mock?.live_shop const liveShopResult = liveShop.find( item => (filter.hashRoom && item.hashRoom === filter.hashRoom) ||