fix(teacher): 独立刷新老师目录以缩短配置更新延迟
This commit is contained in:
1 parent
2767a15017
commit
913ccad577
9 files changed
+184
-7
No files matched your search
@@ -24,6 +24,7 @@ import {
|
||||
teacherVersion,
|
||||
teacherPreview,
|
||||
teacherCatalog,
|
||||
teacherCatalogRevision,
|
||||
TeacherError,
|
||||
type TeacherAccount,
|
||||
} from './config-client';
|
||||
@@ -103,6 +104,10 @@ export class CodingTeacherService {
|
||||
async catalog() {
|
||||
return (this.options.catalog ?? teacherCatalog)(await this.account());
|
||||
}
|
||||
|
||||
async catalogRevision() {
|
||||
return teacherCatalogRevision();
|
||||
}
|
||||
async legacyHistory(projectId: string, selection?: { id: string; sourceId: string; friend: boolean }) {
|
||||
const account = await this.account();
|
||||
const project = await this.options.projects.getProject(projectId);
|
||||
|
||||
Reference in new issue
Block a user