Skip to content

Commit

Permalink
feat: add wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrelstan committed Jan 28, 2022
1 parent bc79d3c commit 09ab42c
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions server/models/Wallets.ts
Original file line number Diff line number Diff line change
@@ -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<WalletsRepository>(
getWalletByIdOrName: delegateRepository<WalletsRepository, Wallets>(
'getWalletByIdOrName',
),
};

0 comments on commit 09ab42c

Please sign in to comment.