feat: implement micro-learning generation service and UI components for interactive topic-based learning
This commit is contained in:
@@ -41,10 +41,10 @@ export async function upsertTopic(topic) {
|
||||
await pb.collection('topics').getOne(topic.id);
|
||||
return await pb.collection('topics').update(topic.id, topic);
|
||||
} catch {
|
||||
return await pb.collection('topics').create({
|
||||
id: topic.id,
|
||||
return await pb.collection('topics').create({
|
||||
id: topic.id,
|
||||
learning_relevance: 'standard',
|
||||
...topic
|
||||
...topic
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user