fix: render consultation replies and typed tool activity
This commit is contained in:
@@ -444,6 +444,14 @@ export class CodingTeacherService {
|
||||
}, async cloudRequestId => {
|
||||
topic.requests.at(-1)!.cloudRequestId = cloudRequestId;
|
||||
await store.save(topic);
|
||||
}, undefined, activity => {
|
||||
const current = topic.requests.at(-1)!;
|
||||
const activities = current.toolActivity ??= [];
|
||||
const index = activities.findIndex(item => item.id === activity.id);
|
||||
if (index < 0) activities.push(activity);
|
||||
else activities[index] = activity;
|
||||
topic.revision++;
|
||||
this.events.emit(key, structuredClone(topic));
|
||||
})
|
||||
: await (this.options.prepareModel ?? prepareTeacherModel)(account, topic.definition,
|
||||
access,
|
||||
|
||||
Reference in New Issue
Block a user