mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
fix: invoice generate sharable link
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import * as moment from 'moment';
|
||||
import { ClsService } from 'nestjs-cls';
|
||||
import { Inject, Injectable } from '@nestjs/common';
|
||||
import { TenantModelProxy } from '../System/models/TenantBaseModel';
|
||||
import { SaleInvoice } from '../SaleInvoices/models/SaleInvoice';
|
||||
@@ -6,8 +7,6 @@ import { TransformerInjectable } from '../Transformer/TransformerInjectable.serv
|
||||
import { PaymentLink } from './models/PaymentLink';
|
||||
import { ServiceError } from '../Items/ServiceError';
|
||||
import { GetInvoicePaymentLinkMetaTransformer } from '../SaleInvoices/queries/GetInvoicePaymentLink.transformer';
|
||||
import { ClsService } from 'nestjs-cls';
|
||||
import { TenancyContext } from '../Tenancy/TenancyContext.service';
|
||||
import { TenantModel } from '../System/models/TenantModel';
|
||||
|
||||
@Injectable()
|
||||
@@ -15,7 +14,6 @@ export class GetInvoicePaymentLinkMetadata {
|
||||
constructor(
|
||||
private readonly transformer: TransformerInjectable,
|
||||
private readonly clsService: ClsService,
|
||||
private readonly tenancyContext: TenancyContext,
|
||||
|
||||
@Inject(SaleInvoice.name)
|
||||
private readonly saleInvoiceModel: TenantModelProxy<typeof SaleInvoice>,
|
||||
|
||||
@@ -25,10 +25,7 @@ export class PaymentLinksController {
|
||||
schema: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
data: {
|
||||
type: 'object',
|
||||
description: 'Payment link metadata',
|
||||
},
|
||||
data: { type: 'object', description: 'Payment link metadata' },
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user