fix
Build and Deploy Docker Images / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-04-19 10:41:53 +03:30
parent 0e44ed00b4
commit 411b3fddaf
@@ -262,7 +262,7 @@ export class WalletsService {
const wallet = await queryRunner.manager.findOne(Wallet, { where: { user: { id: userId } }, lock: { mode: "pessimistic_write" } });
if (!wallet) throw new BadRequestException(WalletMessage.WALLET_NOT_FOUND);
if (wallet.balance.lessThan(amount)) {
if (new Decimal(wallet.balance).lessThan(amount)) {
throw new BadRequestException(WalletMessage.BALANCE_IS_NOT_ENOUGH)
}