fix(admin-panel): fix misplaced import in UITexts causing render error and update graphify
Deploy Canina / deploy (push) Successful in 3m16s
Deploy Canina / deploy (push) Successful in 3m16s
This commit is contained in:
1 parent
c68ff27621
commit
ebdc740bc0
204 files changed
+103917
-104799
No files matched your search
@@ -550,13 +550,19 @@ export class PaymentController {
|
||||
@Roles('Admin')
|
||||
@ApiBearerAuth()
|
||||
@Post('admin/inquiry')
|
||||
@ApiOperation({ summary: 'استعلام زنده وضعیت تراکنش با trackId یا transactionId' })
|
||||
async liveInquiryPost(@Body() body: { trackId?: string | number; transactionId?: string }) {
|
||||
@ApiOperation({
|
||||
summary: 'استعلام زنده وضعیت تراکنش با trackId یا transactionId',
|
||||
})
|
||||
async liveInquiryPost(
|
||||
@Body() body: { trackId?: string | number; transactionId?: string },
|
||||
) {
|
||||
if (body.transactionId) {
|
||||
return this.paymentService.adminLiveInquiry(body.transactionId);
|
||||
}
|
||||
if (body.trackId) {
|
||||
const tx = await this.paymentService.getTransactionByTrackId(String(body.trackId));
|
||||
const tx = await this.paymentService.getTransactionByTrackId(
|
||||
String(body.trackId),
|
||||
);
|
||||
if (tx) {
|
||||
return this.paymentService.adminLiveInquiry(tx.id);
|
||||
}
|
||||
@@ -575,7 +581,6 @@ export class PaymentController {
|
||||
return this.paymentService.adminLiveInquiry(id);
|
||||
}
|
||||
|
||||
|
||||
@UseGuards(JwtAuthGuard, RolesGuard)
|
||||
@Roles('Admin')
|
||||
@ApiBearerAuth()
|
||||
|
||||
@@ -901,7 +901,9 @@ export class PaymentService {
|
||||
|
||||
async inquiryDirectZibal(trackId: string) {
|
||||
const inquiryRes = await this.zibalService.inquiryPayment(trackId);
|
||||
const statusMsg = this.zibalService.getStatusMessage(inquiryRes.status ?? 3);
|
||||
const statusMsg = this.zibalService.getStatusMessage(
|
||||
inquiryRes.status ?? 3,
|
||||
);
|
||||
const resultMsg = this.zibalService.getResultMessage(inquiryRes.result);
|
||||
return {
|
||||
trackId,
|
||||
@@ -917,7 +919,6 @@ export class PaymentService {
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 9. Admin: Manually Approve / Verify a Transaction (e.g. Card-to-Card receipt or bank transfer)
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user