fix(presence-service): 修复方法名 findByDay -> findByDate
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
246c25ab8a
commit
43e769437f
|
|
@ -57,7 +57,7 @@ export class MetricsCollectorService {
|
||||||
const today = new Date();
|
const today = new Date();
|
||||||
const dateStr = format(today, 'yyyy-MM-dd');
|
const dateStr = format(today, 'yyyy-MM-dd');
|
||||||
|
|
||||||
const stats = await this.dauRepository.findByDay(today);
|
const stats = await this.dauRepository.findByDate(today);
|
||||||
if (stats) {
|
if (stats) {
|
||||||
this.metricsService.setDau(dateStr, stats.dauCount);
|
this.metricsService.setDau(dateStr, stats.dauCount);
|
||||||
this.logger.debug(`DAU metric updated: ${dateStr} = ${stats.dauCount}`);
|
this.logger.debug(`DAU metric updated: ${dateStr} = ${stats.dauCount}`);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue