chore: delete permission for get ticket categories
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user