|
@ -128,7 +128,7 @@ async function updateRoadMaintenanceList(ctx) { |
|
|
await models.RoadMaintenance.update(data, { where: { id: data.id } }) |
|
|
await models.RoadMaintenance.update(data, { where: { id: data.id } }) |
|
|
|
|
|
|
|
|
ctx.status = 200; |
|
|
ctx.status = 200; |
|
|
ctx.body = {message}; |
|
|
ctx.body = {message:'编辑成功'}; |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`); |
|
|
ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`); |
|
|
ctx.status = 400; |
|
|
ctx.status = 400; |
|
|