Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
KevLehman committed Jun 7, 2022
1 parent d9865c1 commit 271d94c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/meteor/app/models/server/raw/LivechatInquiry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ export class LivechatInquiryRaw extends BaseRaw<ILivechatInquiryRecord> {
return this.updateOne({ rid }, { $set: { lastMessage: message } });
}

async findNextAndLock(queue?: string): Promise<ILivechatInquiryRecord | undefined> {
async findNextAndLock(department?: string): Promise<ILivechatInquiryRecord | undefined> {
const date = new Date();
const result = await this.col.findOneAndUpdate(
{
status: LivechatInquiryStatus.QUEUED,
...(queue && { queue }),
...(department && { department }),
$or: [
{
locked: true,
Expand Down

0 comments on commit 271d94c

Please sign in to comment.