This commit is contained in:
syuilo 2019-02-22 14:09:24 +09:00
parent 813c52f51e
commit cc8a7dd588
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -25,7 +25,11 @@ export async function getNote(noteId: mongo.ObjectID) {
export async function getUser(userId: mongo.ObjectID) { export async function getUser(userId: mongo.ObjectID) {
const user = await User.findOne({ const user = await User.findOne({
_id: userId, _id: userId,
isDeleted: false $or: [{
isDeleted: { $exists: false }
}, {
isDeleted: false
}]
}, { }, {
fields: { fields: {
data: false, data: false,