chore: format

This commit is contained in:
ThatOneCalculator 2023-10-16 18:33:23 -07:00
parent 57df63c308
commit 996df9588a
No known key found for this signature in database
GPG key ID: 8703CACD01000000

View file

@ -386,28 +386,29 @@ export default async (
// Word mute // Word mute
if (!scyllaClient) { if (!scyllaClient) {
mutedWordsCache mutedWordsCache
.fetch(null, () => .fetch(null, () =>
UserProfiles.find({ UserProfiles.find({
where: { where: {
enableWordMute: true, enableWordMute: true,
}, },
select: ["userId", "mutedWords"], select: ["userId", "mutedWords"],
}), }),
) )
.then((us) => { .then((us) => {
for (const u of us) { for (const u of us) {
getWordHardMute(data, u.userId, u.mutedWords).then((shouldMute) => { getWordHardMute(data, u.userId, u.mutedWords).then((shouldMute) => {
if (shouldMute) { if (shouldMute) {
MutedNotes.insert({ MutedNotes.insert({
id: genId(), id: genId(),
userId: u.userId, userId: u.userId,
noteId: note.id, noteId: note.id,
reason: "word", reason: "word",
}); });
} }
}); });
}}); }
});
} }
// Antenna // Antenna