fix: translate learning record titles to Chinese
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 49s
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 49s
This commit is contained in:
parent
0ea36a7073
commit
0203ccfd1f
@ -152,9 +152,9 @@ export class ReadingEventProcessorService {
|
|||||||
|
|
||||||
// 5d. Write LearningRecord (first open / closed / marked read)
|
// 5d. Write LearningRecord (first open / closed / marked read)
|
||||||
if (['material_opened', 'material_closed', 'marked_as_read'].includes(validated.eventType)) {
|
if (['material_opened', 'material_closed', 'marked_as_read'].includes(validated.eventType)) {
|
||||||
const recordTitle = validated.eventType === 'material_opened' ? 'Reading started'
|
const recordTitle = validated.eventType === 'material_opened' ? '开始阅读'
|
||||||
: validated.eventType === 'material_closed' ? 'Reading ended'
|
: validated.eventType === 'material_closed' ? '结束阅读'
|
||||||
: 'Marked as read';
|
: '标记已读';
|
||||||
await this.recordSvc.createReadingRecordTx(tx, {
|
await this.recordSvc.createReadingRecordTx(tx, {
|
||||||
userId,
|
userId,
|
||||||
sessionId: validated.clientSessionId,
|
sessionId: validated.clientSessionId,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user