Skip to content

Commit

Permalink
insertOne instead of createOrUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
albuquerquefabio committed Jun 2, 2022
1 parent 0cb20c8 commit d518925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/app/statistics/server/lib/SAUMonitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export class SAUMonitorClass {
if (!data) {
return;
}
await Sessions.createOrUpdate(data);
await Sessions.insertOne({ ...data, createdAt: new Date() });
}

private async _finishSessionsFromDate(yesterday: Date, today: Date): Promise<void> {
Expand Down

0 comments on commit d518925

Please sign in to comment.