chore: delete permission for get ticket categories

This commit is contained in:
Matin
2025-02-19 16:31:23 +03:30
parent 6277cce1d0
commit c306dca107
11 changed files with 239 additions and 19 deletions
@@ -184,4 +184,19 @@ export class WalletsService {
if (!wallet) throw new BadRequestException(WalletMessage.WALLET_NOT_FOUND);
return wallet;
}
//*********************************** */
async createInvoiceTransaction(amount: Decimal, walletId: string, queryRunner: QueryRunner) {
const transaction = queryRunner.manager.create(WalletTransaction, {
amount,
wallet: { id: walletId },
type: TransactionType.DEBIT,
description: WalletMessage.INVOICE_WALLET_TRANSFER,
});
await queryRunner.manager.save(WalletTransaction, transaction);
return transaction;
}
}