Skip to content

Conversation

@sampaiodiego
Copy link
Member

Proposed changes (including videos or screenshots)

Issue(s)

Steps to test or reproduce

Further comments

@lgtm-com
Copy link

lgtm-com bot commented Jan 18, 2022

This pull request introduces 1 alert when merging c7d7bb6 into 6e16ba8 - view on LGTM.com

new alerts:

  • 1 for Polynomial regular expression used on uncontrolled data

@sampaiodiego sampaiodiego marked this pull request as ready for review January 19, 2022 01:26
@sampaiodiego sampaiodiego requested a review from a team January 19, 2022 01:26
Comment on lines 327 to 333
await aggregates.dailySessionsOfYesterday(Sessions.col, yesterday).forEach(async (record) => {
await Sessions.updateOne(
{ _id: `${record.userId}-${record.year}-${record.month}-${record.day}` },
{ $set: record },
{ upsert: true },
);
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
await aggregates.dailySessionsOfYesterday(Sessions.col, yesterday).forEach(async (record) => {
await Sessions.updateOne(
{ _id: `${record.userId}-${record.year}-${record.month}-${record.day}` },
{ $set: record },
{ upsert: true },
);
});
await aggregates.dailySessionsOfYesterday(Sessions.col, yesterday).map(async (record) => Sessions.updateOne(
{ _id: `${record.userId}-${record.year}-${record.month}-${record.day}` },
{ $set: record },
{ upsert: true },
));

Comment on lines 80 to 82
onClose: (fn): void => {
this.on('close', fn);
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we should check if this is intended, looks more a leak but not sure

@ggazzo ggazzo merged commit 3771442 into develop Jan 19, 2022
@ggazzo ggazzo deleted the fix-mau-micro-service branch January 19, 2022 14:56
gabriellsh added a commit that referenced this pull request Jan 19, 2022
…hat into improve/setup-wizard

* 'improve/setup-wizard' of github.com:RocketChat/Rocket.Chat:
  Regression: Fix handling of http requests in apps bridge (#24211)
  Bump version to 4.3.2
  [FIX] Integration section crashing opening in My Account (#24068)
  Chore: Update Apps-Engine to 1.29.2 (#24171)
  [FIX] App Framework Enable hanging indefinitely (#24158)
  [FIX] CSV Importer failing to import users (#24090)
  Fix Engagement Dashboard API requests (#24142)
  [FIX] MAU when using micro services (#24204)
  [IMPROVE] Limit recent emojis to 27 (#24210)
  Bump version to 4.3.1
  Bump Fuselage packages
  [FIX][APPS] Action buttons not removed when app is disabled or uninstalled (#24107)
  [FIX][APPS] Prevents emails from being sent when apps framework is disabled (#24105)
  [FIX] Ensure Firefox 91 ESR support (#24096)
  Chore: Update Livechat (#24091)
  [FIX] Omnichannel enabled setting not working when creating rooms (#24067)
  [FIX] Enter not working on modal's multi-line input (#23981)
  [FIX] Omnichannel Current chats pagination not working (#24039)
@sampaiodiego sampaiodiego mentioned this pull request Jan 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants