feat: productionize learning engine and classroom
This commit is contained in:
@@ -172,7 +172,7 @@ async function routeFetch(
|
||||
repos: Awaited<ReturnType<typeof serverRepos>>,
|
||||
statuses: number[],
|
||||
): Promise<typeof fetch> {
|
||||
const { handleCoursePublishRequest } = await import('@/app/api/internal/course-publish/route');
|
||||
const { handleCoursePublishRequest } = await import('@/lib/server/course-publish-route');
|
||||
return (async (input: RequestInfo | URL, init?: RequestInit) => {
|
||||
const request = new NextRequest(typeof input === 'string' ? input : input.toString(), {
|
||||
method: init?.method,
|
||||
@@ -618,7 +618,7 @@ describe('remote transactional course publish', () => {
|
||||
);
|
||||
|
||||
const server = await serverRepos();
|
||||
const { handleCoursePublishRequest } = await import('@/app/api/internal/course-publish/route');
|
||||
const { handleCoursePublishRequest } = await import('@/lib/server/course-publish-route');
|
||||
// Retain the server module instance in this closure, then load the ops
|
||||
// route with a fresh mutex exactly as two Node processes would.
|
||||
vi.resetModules();
|
||||
|
||||
Reference in New Issue
Block a user