修正團體管理的 BUG
This commit is contained in:
@@ -45,7 +45,7 @@ export async function PUT(request: NextRequest, { params }: { params: { id: stri
|
||||
try {
|
||||
const { id: appId } = await params
|
||||
const body = await request.json()
|
||||
const { name, description, category, type, app_url, icon, icon_color } = body
|
||||
const { name, description, category, type, app_url, icon, icon_color, department } = body
|
||||
|
||||
// 更新應用
|
||||
const result = await appService.updateApp(appId, {
|
||||
@@ -55,7 +55,8 @@ export async function PUT(request: NextRequest, { params }: { params: { id: stri
|
||||
type,
|
||||
app_url,
|
||||
icon,
|
||||
icon_color
|
||||
icon_color,
|
||||
department
|
||||
})
|
||||
|
||||
if (result.success) {
|
||||
|
Reference in New Issue
Block a user