Fix plugin store public controller param order so nest build succeeds.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -51,9 +51,9 @@ export class PublicPluginStoreController {
|
|||||||
|
|
||||||
@Post('requests')
|
@Post('requests')
|
||||||
create(
|
create(
|
||||||
|
@Body() dto: CreatePurchaseRequestDto,
|
||||||
@Query('domain') domain?: string,
|
@Query('domain') domain?: string,
|
||||||
@Headers('origin') origin?: string,
|
@Headers('origin') origin?: string,
|
||||||
@Body() dto: CreatePurchaseRequestDto,
|
|
||||||
) {
|
) {
|
||||||
return this.store.publicCreateRequest(domain, origin, dto);
|
return this.store.publicCreateRequest(domain, origin, dto);
|
||||||
}
|
}
|
||||||
@@ -93,9 +93,9 @@ export class PublicPluginStoreController {
|
|||||||
)
|
)
|
||||||
receipt(
|
receipt(
|
||||||
@Param('id') id: string,
|
@Param('id') id: string,
|
||||||
|
@UploadedFile() file: Express.Multer.File,
|
||||||
@Query('domain') domain?: string,
|
@Query('domain') domain?: string,
|
||||||
@Headers('origin') origin?: string,
|
@Headers('origin') origin?: string,
|
||||||
@UploadedFile() file: Express.Multer.File,
|
|
||||||
) {
|
) {
|
||||||
if (!file) throw new BadRequestException('فایل ارسال نشده است');
|
if (!file) throw new BadRequestException('فایل ارسال نشده است');
|
||||||
const base = publicApiBase(this.config);
|
const base = publicApiBase(this.config);
|
||||||
|
|||||||
Reference in New Issue
Block a user