Skip to content

Commit

Permalink
src/withdrawal: Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
sashko9807 committed Dec 12, 2023
1 parent af7a7cd commit 1a5a3fc
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions apps/api/src/withdrawal/withdrawal.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,9 @@ import { UpdateWithdrawalDto } from './dto/update-withdrawal.dto'
export class WithdrawalService {
constructor(private prisma: PrismaService) {}

/**
* Check whether
* @param status status of withdrawn record
* @returns
*/
isWithdrawnCancelled(status: WithdrawStatus) {
return status === WithdrawStatus.cancelled || status === WithdrawStatus.declined
}

/**
* Creates a withdrawal, while blocking the corresponding amount in the source vault.
*/

async create(createWithdrawalDto: CreateWithdrawalDto): Promise<Withdrawal> {
const vault = await this.prisma.vault.findFirstOrThrow({
where: {
Expand Down

0 comments on commit 1a5a3fc

Please sign in to comment.