|
|
@ -41,7 +41,7 @@ async function updateSegments(ctx: Router.IRouterContext) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
let segmentsUpdate = ctx.request.body; |
|
|
|
let segmentsUpdate = ctx.request.body; |
|
|
|
let id = segmentsUpdate.id; |
|
|
|
let id = segmentsUpdate.id; |
|
|
|
let addedIds = insertSegments(id, segmentsUpdate.addedSegments, true); |
|
|
|
let addedIds = insertSegments(id, segmentsUpdate.addedSegments); |
|
|
|
// removeSegments(id, segmentsUpdate.removedSegments);
|
|
|
|
// removeSegments(id, segmentsUpdate.removedSegments);
|
|
|
|
ctx.response.body = { addedIds }; |
|
|
|
ctx.response.body = { addedIds }; |
|
|
|
runLearning(id); |
|
|
|
runLearning(id); |
|
|
|