Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KevLehman committed Sep 21, 2023
1 parent eeba96f commit 319e52d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/meteor/app/livechat/server/lib/Livechat.js
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ export const Livechat = {
},

async removeGuest(_id) {
const guest = await LivechatVisitors.findOneEnabledById(_id, { projection: { _id: 1 } });
const guest = await LivechatVisitors.findOneEnabledById(_id, { projection: { _id: 1, token: 1 } });
if (!guest) {
throw new Meteor.Error('error-invalid-guest', 'Invalid guest', {
method: 'livechat:removeGuest',
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/server/models/raw/LivechatVisitors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export class LivechatVisitorsRaw extends BaseRaw<ILivechatVisitor> implements IL

getVisitorsBetweenDate({ start, end, department }: { start: Date; end: Date; department?: string }): FindCursor<ILivechatVisitor> {
const query = {
disabled: { $ne: true },
_updatedAt: {
$gte: new Date(start),
$lt: new Date(end),
Expand Down Expand Up @@ -218,7 +219,6 @@ export class LivechatVisitorsRaw extends BaseRaw<ILivechatVisitor> implements IL
disabled: { $ne: true },
};

console.log(JSON.stringify(query));
return this.findPaginated(query, options);
}

Expand Down

0 comments on commit 319e52d

Please sign in to comment.