Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Sep 29, 2023
1 parent 0e59250 commit ff47c50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NPS, Banner } from '@rocket.chat/core-services';
import { type Cloud, type Serialized } from '@rocket.chat/core-typings';
import { CloudAnnouncents, Settings } from '@rocket.chat/models';
import { CloudAnnouncements, Settings } from '@rocket.chat/models';
import { serverFetch as fetch } from '@rocket.chat/server-fetch';
import { v, compile } from 'suretype';

Expand Down Expand Up @@ -172,13 +172,13 @@ const handleAnnouncementsOnWorkspaceSync = async (
const { create, delete: deleteIds } = announcements;

if (deleteIds) {
await CloudAnnouncents.deleteMany({ _id: { $in: deleteIds } });
await CloudAnnouncements.deleteMany({ _id: { $in: deleteIds } });
}

for await (const announcement of create.map(deserializeAnnouncement)) {
const { _id, ...rest } = announcement;

await CloudAnnouncents.updateOne({ _id }, { $set: rest }, { upsert: true });
await CloudAnnouncements.updateOne({ _id }, { $set: rest }, { upsert: true });
}
};

Expand Down
2 changes: 1 addition & 1 deletion packages/models/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,4 @@ export const AuditLog = proxify<IAuditLogModel>('IAuditLogModel');
export const CronHistory = proxify<ICronHistoryModel>('ICronHistoryModel');
export const Migrations = proxify<IMigrationsModel>('IMigrationsModel');
export const ModerationReports = proxify<IModerationReportsModel>('IModerationReportsModel');
export const CloudAnnouncents = proxify<ICloudAnnouncementsModel>('ICloudAnnouncementsModel');
export const CloudAnnouncements = proxify<ICloudAnnouncementsModel>('ICloudAnnouncementsModel');

0 comments on commit ff47c50

Please sign in to comment.