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')
|
||||
create(
|
||||
@Body() dto: CreatePurchaseRequestDto,
|
||||
@Query('domain') domain?: string,
|
||||
@Headers('origin') origin?: string,
|
||||
@Body() dto: CreatePurchaseRequestDto,
|
||||
) {
|
||||
return this.store.publicCreateRequest(domain, origin, dto);
|
||||
}
|
||||
@@ -93,9 +93,9 @@ export class PublicPluginStoreController {
|
||||
)
|
||||
receipt(
|
||||
@Param('id') id: string,
|
||||
@UploadedFile() file: Express.Multer.File,
|
||||
@Query('domain') domain?: string,
|
||||
@Headers('origin') origin?: string,
|
||||
@UploadedFile() file: Express.Multer.File,
|
||||
) {
|
||||
if (!file) throw new BadRequestException('فایل ارسال نشده است');
|
||||
const base = publicApiBase(this.config);
|
||||
|
||||
Reference in New Issue
Block a user