文案模块优化

This commit is contained in:
Jerry 2025-08-25 23:09:51 +08:00
parent de264b1244
commit 839df5170a
2 changed files with 3 additions and 3 deletions

View File

@ -3,9 +3,10 @@ import { WordsController } from './words.controller';
import { WordsService } from './words.service';
import { PathModule } from '../../core/path/path.module';
import { ToolsModule } from '../../core/tools/tools.module';
import { AutoUpdateModule } from '../../core/auto-update/auto-update.module';
@Module({
imports: [PathModule, ToolsModule],
imports: [PathModule, ToolsModule, AutoUpdateModule],
controllers: [WordsController],
providers: [WordsService],
exports: [WordsService],

View File

@ -35,9 +35,8 @@ export class WordsService {
* words
*/
private startAutoUpdate() {
const wordsPath = this.paths.get('words');
setInterval(async () => {
const wordsPath = this.paths.get('words');
this.logger.log('定时检查文案仓库更新..');
const updated = await this.autoUpdateService.checkRepoForUpdates(
wordsPath,