Skip to content
Snippets Groups Projects
Unverified Commit cc8a7dd5 authored by syuilo's avatar syuilo
Browse files

Fix bug

parent 813c52f5
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment