mirror of
https://github.com/n08i40k/schedule-parser-next.git
synced 2025-12-06 09:47:46 +03:00
1.1.0
This commit is contained in:
@@ -127,12 +127,16 @@ export class ScheduleService {
|
||||
return groupNames;
|
||||
}
|
||||
|
||||
async updateSiteMainPage(siteMainPageDto: SiteMainPageDto): Promise<void> {
|
||||
async updateSiteMainPage(
|
||||
siteMainPageDto: SiteMainPageDto,
|
||||
): Promise<CacheStatusDto> {
|
||||
await this.scheduleParser
|
||||
.getXlsDownloader()
|
||||
.setPreparedData(siteMainPageDto.mainPage);
|
||||
|
||||
await this.cacheManager.reset();
|
||||
await this.getSourceSchedule();
|
||||
|
||||
return this.getCacheStatus();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user