Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Dec 17, 2024
1 parent fc48c59 commit 735c21b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/load_schedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import path from 'node:path';
import assert from 'node:assert';
import { stringify } from 'node:querystring';
import { isClass, isFunction, isGeneratorFunction } from 'is-type-of';
import { importResolve } from '@eggjs/utils';
import type { EggApplicationCore, EggContext } from 'egg';
import type { EggScheduleConfig, EggScheduleTask, EggScheduleItem } from './types.js';

Expand Down Expand Up @@ -42,7 +43,7 @@ function getScheduleLoader(app: EggApplicationCore) {
}

// handle symlink case
const realFullpath = require.resolve(fullpath);
const realFullpath = importResolve(fullpath);
target[realFullpath] = {
schedule: scheduleConfig,
scheduleQueryString: stringify(scheduleConfig as any),
Expand Down

0 comments on commit 735c21b

Please sign in to comment.