Skip to content

Commit

Permalink
linting;
Browse files Browse the repository at this point in the history
  • Loading branch information
LucianoPierdona committed Aug 16, 2022
1 parent 17069f9 commit 819b61e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/meteor/app/lib/server/functions/cleanRoomHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ export const cleanRoomHistory = function ({

let fileCount = 0;
Messages.findFilesByRoomIdPinnedTimestampAndUsers(rid, excludePinned, ignoreDiscussion, ts, fromUsers, ignoreThreads, {
fields: { 'pinned': 1, 'files': 1 },
fields: { pinned: 1, files: 1 },
limit,
}).forEach((document: IMessage) => {
const uploadsStore = FileUpload.getStore('Uploads');

document.files?.forEach(file => uploadsStore.deleteById(file._id));
document.files?.forEach((file) => uploadsStore.deleteById(file._id));
fileCount++;
if (filesOnly) {
Messages.update({ _id: document._id }, { $unset: { file: 1 }, $set: { attachments: [{ color: '#FD745E', text }] } });
Expand Down

0 comments on commit 819b61e

Please sign in to comment.