diff --git a/api/src/analytics/services/bot-stats.service.ts b/api/src/analytics/services/bot-stats.service.ts index 6e2feb82..ad12c982 100644 --- a/api/src/analytics/services/bot-stats.service.ts +++ b/api/src/analytics/services/bot-stats.service.ts @@ -68,7 +68,7 @@ export class BotStatsService extends BaseService { * @param {Subscriber} subscriber - The subscriber object that contains last visit and retention data. */ @OnEvent('hook:user:lastvisit') - private handleLastVisit(subscriber: Subscriber) { + handleLastVisit(subscriber: Subscriber) { const now = +new Date(); if (subscriber.lastvisit) { // A loyal subscriber is a subscriber that comes back after some inactivity @@ -110,7 +110,7 @@ export class BotStatsService extends BaseService { * @param name - The name or identifier of the statistics entry (e.g., a specific feature or component being tracked). */ @OnEvent('hook:stats:entry') - private async handleStatEntry(type: BotStatsType, name: string) { + async handleStatEntry(type: BotStatsType, name: string) { const day = new Date(); day.setMilliseconds(0); day.setSeconds(0); diff --git a/api/src/chat/services/subscriber.service.ts b/api/src/chat/services/subscriber.service.ts index 8bfb912b..006ab19f 100644 --- a/api/src/chat/services/subscriber.service.ts +++ b/api/src/chat/services/subscriber.service.ts @@ -235,7 +235,7 @@ export class SubscriberService extends BaseService< * @param subscriber The subscriber whose is being handled. */ @OnEvent('hook:user:lastvisit') - private async handleLastVisit(subscriber: Subscriber) { + async handleLastVisit(subscriber: Subscriber) { if (subscriber.lastvisit) { try { const user = await this.updateOne(subscriber.id, {