create license management
This commit is contained in:
@@ -17,7 +17,7 @@ export class GoodsController {
|
||||
}
|
||||
|
||||
@Post()
|
||||
create(@Param('guildId') guildId: string, @Body() data: CreateGuildGoodDto) {
|
||||
return this.goodsService.create(guildId, data)
|
||||
create(@Body() data: CreateGuildGoodDto) {
|
||||
return this.goodsService.create(data)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ export class GoodsService {
|
||||
return ResponseMapper.single(good)
|
||||
}
|
||||
|
||||
async create(guild_id: string, data: CreateGuildGoodDto) {
|
||||
async create(data: CreateGuildGoodDto) {
|
||||
const { category_id, ...rest } = data
|
||||
|
||||
const good = await this.prisma.good.create({
|
||||
|
||||
Reference in New Issue
Block a user