Skip to content

Commit

Permalink
fix: message auto logger event missed (#917)
Browse files Browse the repository at this point in the history
  • Loading branch information
embbnux authored Nov 29, 2024
1 parent 6030e33 commit 4d45651
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/modules/ConversationLogger/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ export class ConversationLogger extends ConversationLoggerBase {
await this._doLog(data);
};
this._accordWithLogRequirement = (conversation) => {
const { date } = conversation;
const dateTimeStamp = new Date(date).getTime();
const currentDateTimeStamp = getCurrentDateTimeStamp();
return currentDateTimeStamp === dateTimeStamp;
const today = this._formatDateTime({
type: 'date',
utcTimestamp: new Date(),
});
return today === conversation.date;
};
}

Expand Down

0 comments on commit 4d45651

Please sign in to comment.