Skip to content

Commit

Permalink
Bump version to 5.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Nov 24, 2022
1 parent 08f03cc commit f1b7294
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .github/history-manual.json
Expand Up @@ -203,5 +203,12 @@
"contributors": [
"ggazzo"
]
}],
"5.2.1": [{
"title": "[FIX] Security Hotfix (https://docs.rocket.chat/guides/security/security-updates)",
"userLogin": "ggazzo",
"contributors": [
"ggazzo"
]
}]
}
14 changes: 13 additions & 1 deletion HISTORY.md
@@ -1,4 +1,16 @@

# 5.2.1
`2022-11-24 · 1 🐛 · 1 👩‍💻👨‍💻`

### 🐛 Bug fixes


- Security Hotfix (https://docs.rocket.chat/guides/security/security-updates)

### 👩‍💻👨‍💻 Core Team 🤓

- [@ggazzo](https://github.com/ggazzo)

# 5.2.0
`2022-10-13 · 5 🎉 · 13 🚀 · 19 🐛 · 62 🔍 · 28 👩‍💻👨‍💻`

Expand Down Expand Up @@ -10429,7 +10441,7 @@
- [@ggazzo](https://github.com/ggazzo)

# 3.18.6
`2022-05-26 · 1 🐛 · 1 👩‍💻👨‍💻`
`2022-05-20 · 1 🐛 · 1 👩‍💻👨‍💻`

### Engine versions
- MongoDB: `3.4, 3.6, 4.0, 4.2`
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/.docker/Dockerfile.rhel
@@ -1,6 +1,6 @@
FROM registry.access.redhat.com/ubi8/nodejs-12

ENV RC_VERSION 5.2.0
ENV RC_VERSION 5.2.1

MAINTAINER buildmaster@rocket.chat

Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/app/utils/rocketchat.info
@@ -1,3 +1,3 @@
{
"version": "5.2.0"
"version": "5.2.1"
}
2 changes: 1 addition & 1 deletion apps/meteor/package.json
@@ -1,7 +1,7 @@
{
"name": "@rocket.chat/meteor",
"description": "The Ultimate Open Source WebChat Platform",
"version": "5.2.0",
"version": "5.2.1",
"private": true,
"author": {
"name": "Rocket.Chat",
Expand Down
17 changes: 16 additions & 1 deletion apps/meteor/server/models/raw/Subscriptions.ts
@@ -1,7 +1,18 @@
import { escapeRegExp } from '@rocket.chat/string-helpers';
import type { IRole, IRoom, ISubscription, IUser, RocketChatRecordDeleted, RoomType, SpotlightUser } from '@rocket.chat/core-typings';
import type { ISubscriptionsModel } from '@rocket.chat/model-typings';
import type { Collection, FindCursor, Db, Filter, FindOptions, UpdateResult, DeleteResult, Document, AggregateOptions } from 'mongodb';
import type {
Collection,
FindCursor,
Db,
Filter,
FindOptions,
UpdateResult,
DeleteResult,
Document,
AggregateOptions,
IndexDescription,
} from 'mongodb';
import { Rooms, Users } from '@rocket.chat/models';
import { compact } from 'lodash';

Expand All @@ -12,6 +23,10 @@ export class SubscriptionsRaw extends BaseRaw<ISubscription> implements ISubscri
super(db, 'subscription', trash);
}

protected modelIndexes(): IndexDescription[] {
return [{ key: { E2EKey: 1 }, unique: true, sparse: true }];
}

async getBadgeCount(uid: string): Promise<number> {
const [result] = await this.col
.aggregate<{ total: number }>([
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "rocket.chat",
"version": "5.2.0",
"version": "5.2.1",
"description": "Rocket.Chat Monorepo",
"main": "index.js",
"private": true,
Expand Down

0 comments on commit f1b7294

Please sign in to comment.