From 09ab42c2b51847231917f92f51bb61604b51dd43 Mon Sep 17 00:00:00 2001 From: Stanley Pierre-Louis Date: Fri, 28 Jan 2022 06:14:07 -0400 Subject: [PATCH] feat: add wallets --- server/models/Wallets.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/server/models/Wallets.ts b/server/models/Wallets.ts index 16093f5b..a76c088a 100644 --- a/server/models/Wallets.ts +++ b/server/models/Wallets.ts @@ -1,17 +1,10 @@ +import Wallets from 'interfaces/Wallets'; import { delegateRepository } from '../infra/database/delegateRepository'; // eslint-disable-next-line import/no-cycle import WalletsRepository from '../infra/database/WalletsRepository'; -export type Wallet = { - id: string; - name: string; - token_in_wallet: number; - photo_url: string; -}; -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore export default { - getWalletByIdOrName: delegateRepository( + getWalletByIdOrName: delegateRepository( 'getWalletByIdOrName', ), };