mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 07:10:33 +00:00
fix: filter pdf templates by resource
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
|||||||
Param,
|
Param,
|
||||||
Post,
|
Post,
|
||||||
Put,
|
Put,
|
||||||
|
Query,
|
||||||
} from '@nestjs/common';
|
} from '@nestjs/common';
|
||||||
import { PdfTemplateApplication } from './PdfTemplate.application';
|
import { PdfTemplateApplication } from './PdfTemplate.application';
|
||||||
import { ICreateInvoicePdfTemplateDTO, IEditPdfTemplateDTO } from './types';
|
import { ICreateInvoicePdfTemplateDTO, IEditPdfTemplateDTO } from './types';
|
||||||
@@ -77,7 +78,7 @@ export class PdfTemplatesController {
|
|||||||
status: 200,
|
status: 200,
|
||||||
description: 'The PDF templates have been successfully retrieved.',
|
description: 'The PDF templates have been successfully retrieved.',
|
||||||
})
|
})
|
||||||
async getPdfTemplates(@Body('resource') resource: string) {
|
async getPdfTemplates(@Query('resource') resource?: string) {
|
||||||
return this.pdfTemplateApplication.getPdfTemplates({ resource });
|
return this.pdfTemplateApplication.getPdfTemplates({ resource });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user