diff --git a/src/server/api/common/getters.ts b/src/server/api/common/getters.ts index 1947c95ab6..7a72e6489a 100644 --- a/src/server/api/common/getters.ts +++ b/src/server/api/common/getters.ts @@ -25,7 +25,11 @@ export async function getNote(noteId: mongo.ObjectID) { export async function getUser(userId: mongo.ObjectID) { const user = await User.findOne({ _id: userId, - isDeleted: false + $or: [{ + isDeleted: { $exists: false } + }, { + isDeleted: false + }] }, { fields: { data: false,