mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 19:23:08 +02:00
Refactor
This commit is contained in:
parent
44f6fe6f1f
commit
2fad6e6d5f
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ export const hideNote = async (packedNote: any, meId: mongo.ObjectID) => {
|
|||
hide = false;
|
||||
} else {
|
||||
// 指定されているかどうか
|
||||
const specified = packedNote.visibleUserIds.some((id: mongo.ObjectID) => id.equals(meId));
|
||||
const specified = packedNote.visibleUserIds.some((id: any) => meId.equals(id));
|
||||
|
||||
if (specified) {
|
||||
hide = false;
|
||||
|
|
Loading…
Reference in a new issue